Re: Arabic and other RTL ( Right to Left) languages User Interface

Sorry@poncho1234

I did not explain things properly.. I do have POEDIT and have apmuthu version of the file and its about 90% correct but 100% translated. Some of it is a direct google translation which is not 100% correct. Contextual translation needs some human intervention especially when a Technical or special Accounting terms are used.. but that is not my main concern as I edit the Translation file to the terms that suit my organization..

What I meant is the text inside the graphics in the dashboard as seen in the attached file.

Appreciate your efforts.

Post's attachments

DashBoard.png 18.3 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Arabic and other RTL ( Right to Left) languages User Interface

Have a look at the translation strings in includes/dashboard.inc - these strings are in the .po file available for translation. Compare with the English versions and match the translations.

Another file of interest is reporting/includes/class.graphic.inc that is included in admin/dashboard.php.

28 (edited by poncho1234 07/09/2019 06:03:12 pm)

Re: Arabic and other RTL ( Right to Left) languages User Interface

I think it's this:- It's your GL Account Classes:-
What are the names of your GL Account Classes? Go to Banking And General Ledger->GL Account Classes: Change names of Income and Cost classes...may as well change the rest why you are there.

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/

Re: Arabic and other RTL ( Right to Left) languages User Interface

@poncho1234

I am getting there. One last thing .. Where can I change the font size of the Reports and Analysis screens?

Appreciate your help.

Re: Arabic and other RTL ( Right to Left) languages User Interface

Most browsers use CTRL +/- to adjust display font size. All reports have font settings tied to column widths.

31 (edited by rafat 07/30/2019 11:47:05 am)

Re: Arabic and other RTL ( Right to Left) languages User Interface

Thanks @apmuthu

I guess you are right with the browser font -/+..but we really need to fix the starting font size.. Its minute with English and with Arabic its minuscule. I looked into the default.css and could not decipher where this font size is defined. I meant when one chooses Reports and Analysis (../reporting/reports_main.php?Class=6)

Thanks..

32 (edited by poncho1234 07/30/2019 11:46:08 pm)

Re: Arabic and other RTL ( Right to Left) languages User Interface

Re-reading you may just want this:-
There is no css class defined just for this, so you need to add one:-

.repclass tbody tr td a {
    font-size: 12px;
}

Note:- .repclass a {... should work, but not tested

That will do only the Reports For Class: list, to change the report classes: list read the following:-

How do you see what css affects what element on a page?
Either press the F12 key OR right-click on page element and select 'Inspect'(Chrome) or 'Inspect Element'(Firefox) You should now see a panel showing html and another panel showing the relevant css.

Have a play

Tips -
You can change what you want and instantly see the results(They are not saved, to cancel changes just press page refresh), then make the changes in the css file.
In Firefox only (sadly not chrome) if you right-click over an html element(in html panel) select 'Copy' then 'CSS Path'; paste that into a text editor and you will see the complete css path, shorten as necessary, then use.

Google 'how to use browser developer tools' for more info

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/

Re: Arabic and other RTL ( Right to Left) languages User Interface

When I write a note in Urdu language in FA, it is replaced by question marks in PDF. What is the solution?

Re: Arabic and other RTL ( Right to Left) languages User Interface

Can its Noori Nastaliq font for Urdu language be installed in FA?

Re: Arabic and other RTL ( Right to Left) languages User Interface

When English is activated I want to write some reminders in Urdu to explain to some employees who don't know English.
Text is shown as ????????? in PDF.

36 (edited by rafat 09/20/2022 06:21:37 am)

Re: Arabic and other RTL ( Right to Left) languages User Interface

Make sure that the language encoding is utf-8 then go:
https://frontaccounting.com/wbt/pages/download/downloads-for-release-2.3fonts.php
Download and install dejavu font as described in the instructions.

Also on the same page take a look at the Font Utility Package if you want to use your own fonts.

Re: Arabic and other RTL ( Right to Left) languages User Interface

rafat wrote:

Make sure that the language encoding is utf-8 then go:
https://frontaccounting.com/wbt/pages/download/downloads-for-release-2.3fonts.php
Download and install dejavu font as described in the instructions.

Also on the same page take a look at the Font Utility Package if you want to use your own fonts.

Doing it this way has not solved my problem۔

38 (edited by rafat 09/22/2022 10:21:29 am)

Re: Arabic and other RTL ( Right to Left) languages User Interface

Can you list here the contents of your /lang/installed_languages.inc

Also make sure that

                    default :          $fontname = "dejavu";         break;

is specified as the default font around line 162.

Re: Arabic and other RTL ( Right to Left) languages User Interface

rafat wrote:

Can you list here the contents of your /lang/installed_languages.inc

Also make sure that

                    default :          $fontname = "dejavu";         break;

is specified as the default font around line 162.

My list here the contents of my /lang/installed_languages.inc

<?php

/* How to make new entries here for non-packaged languages:

-- 'code' should match the name of the directory for the language under \lang
.-- 'name' is the name that will be displayed in the language selection list (in Users and Display Setup)
-- 'rtl' only needs to be set for right-to-left languages like Arabic and Hebrew
-- 'encoding' used in translation file
-- 'version' always set to '' for manually installed languages.
-- 'path' installation path related to FA root (e.g. 'lang/en_US').
*/


$installed_languages = array (
  0 =>
  array (
    'code' => 'C',
    'name' => 'English',
    'encoding' => 'iso-8859-1',
  ),
  1 =>
  array (
    'name' => 'Arabic',
    'package' => 'ar_EG',
    'code' => 'ar_EG',
    'encoding' => 'utf-8',
    'version' => '2.4.1-3',
    'path' => 'lang/ar_EG',
    'rtl' => true,
  ),
  2 =>
  array (
    'name' => 'Urdu',
    'package' => 'ur_PK',
    'code' => 'ur_PK',
    'encoding' => 'utf-8',
    'version' => '2.4.1-3',
    'path' => 'lang/ur_PK',
    'rtl' => true,
  ),
);

$dflt_lang = 'C';

Re: Arabic and other RTL ( Right to Left) languages User Interface

You need to change the English encoding to utf-8

Re: Arabic and other RTL ( Right to Left) languages User Interface

rafat wrote:

You need to change the English encoding to utf-8

How can I change it?  Please guide me on this.

42 (edited by msuhail197 09/23/2022 03:06:46 am)

Re: Arabic and other RTL ( Right to Left) languages User Interface

rafat wrote:

You need to change the English encoding to utf-8

C    English    utf-8    No    Unknown    None           

I have changed the English encoding to utf-8, But even then, writing a note in Urdu when English is the default makes that Urdu question mark in the PDF.

Re: Arabic and other RTL ( Right to Left) languages User Interface

@msuhail197

This is a very simple thing that should work immediate if all your setup is correct. Mainly utf-8 for English in installed_languages.inc and the default font dejavu  mentioned in class.pdf.inc and that the font files are in /reporting/fonts. Thats all. Unless you have /reporting directory somewhere in /company/x that is overriding your changes. So please review your installation.