Willkommen Gast. Bitte Einloggen oder Registrieren
 
Sprache wählen:
 
  Last Script Version: 20

  ÜbersichtHilfeSuchenEinloggenRegistrieren  
 
Seitenindex umschalten Seiten: 1
Thema versenden Drucken
Translation to other lang (Gelesen: 6277 mal)
esystems
Ex-Mitglied


Translation to other lang
29.03.09 um 14:07:46
 
Hi
I have started to translate to hebrew language
99% of the language file is done and working fine!

Need to translate the language_admin file
20% of it is done

But I need to have the text to be right to left <dir=''rtl''>
and some of it <align="right">

1. Is there a better place to put :
          if ( $language == "language/hebrew.php"    )
To make it automatic change direction of all the tables in the pages.
or just to add it to any table tage ?- in the php files

Any Suggestion?

2. where do you have a section for other language to contribute ?
(if you are interest)

Joseph
Zum Seitenanfang
« Zuletzt geändert: 30.03.09 um 00:37:59 von N/V »  
 
IP gespeichert
 
Husky
Global Moderator
*****
Offline



Beiträge: 1133
Geschlecht: male
Re: Translation to other lang
Antwort #1 - 30.03.09 um 04:03:05
 
Hi Joseph,

a translation in hebrew sounds good for me and I'm sure R&H will appreciate that.

Zitat:
To make it automatic change direction of all the tables in the pages.
or just to add it to any table tage ?- in the php files

Any Suggestion?

Maybe you will compare your Project with the existent Language Packs on the Website. Go to
http://www.php-web-statistik.de/download-english.html and if you like do a download to see
how it works.
After a download and unzipping of the Downloadfile you will find three Files comparatively like this:
german.php, german_admin.php, german_country.php
Will you use a Language Pack in the Stat you are in need to upload this three Files in the stat/language
Folder on your Server. After that you can enter your Admin-Center and select the Language. That will change the language for the whole Statistik Program!
That's it Zwinkernd

regards
Husky

Zum Seitenanfang
 
 
IP gespeichert
 
Reimar
Administrator
*****
Offline



Beiträge: 1984
Geschlecht: male
Re: Translation to other lang
Antwort #2 - 30.03.09 um 10:38:30
 
Hi Joseph,

the farsi language pack should be a good template for you.
we will make the customization for right to left in the css.

Bye
Reimar
Zum Seitenanfang
 
 
IP gespeichert
 
Husky
Global Moderator
*****
Offline



Beiträge: 1133
Geschlecht: male
Re: Translation to other lang
Antwort #3 - 30.03.09 um 19:54:15
 
@Reimar,

it seems for me that the Farsi download Link doesn't work.
"Id wurde in der Datenbank nicht gefunden!"  unentschlossen

regards  Zwinkernd
Husky
Zum Seitenanfang
 
 
IP gespeichert
 
esystems
Ex-Mitglied


Re: Translation to other lang
Antwort #4 - 30.03.09 um 23:30:55
 
Thanks to Husky and Reimar.

Zitat:
a translation in hebrew sounds good for me and I'm sure R&H will appreciate that.

when ready i'll send it or upload it.

Zitat:
After a download and unzipping of the Downloadfile you will find three Files

I did already download and translate from english files

hebrew.php 100% done !
hebrew_admin.php 50% done!

Did already the changes in:

add code in line 554
index.php
to the Admin-Center link

Code:
if ( $language == "language/hebrew.php"    ) { echo '<input type="button" class="button" onclick="location.href=\'config/admin.php?lang=he\'" value="Admin-Center">'; } 


add code in line 65 in
counter.php
to include the language file

Code:
 if ( $_GET [ "language" ] == "he" ) { include ( "language/hebrew.php" ); } 


After i made the changes
My stat is working fine in hebrew language

Zitat:
the farsi language pack should be a good template for you.
we will make the customization for right to left in the css.

Thanks for the sugested costumize css file right to left.

I'l apriciate if you do so.
Smiley

the Farsi download Link realy doesn't work.!!
is there another place to download it?
does it have right to left align css file?

best regards
Joseph


Zum Seitenanfang
 
 
IP gespeichert
 
Holger
Administrator
*****
Offline



Beiträge: 2298
Germany NRW
Geschlecht: male
Re: Translation to other lang
Antwort #5 - 04.04.09 um 17:50:25
 
Hi Joseph,

the code in the css file must be (
direction: rtl;
)

Code:
/* general style */
body {
  background: #C7C7C7 url('bg_body.gif') repeat-x;
  color: #000000;
  font-family: Verdana, Arial, Sans-Serif;
  font-size: 11px;
  letter-spacing: 0.2mm;
  word-spacing: 0.4mm;
  margin: 5px 10px 5px 10px;
  direction: rtl;
}
... 



regards
Holger
Zum Seitenanfang
 

... ... ...
Homepage  
IP gespeichert
 
Seitenindex umschalten Seiten: 1
Thema versenden Drucken