Firefox PHP

Romanian translation?

Posted by unics 
Re: Can I translate it into Romanian ?
April 13, 2007 07:56AM
You find it! 'Mesaje neaprobate'. '.
I have looked 3 times and missed it. I suspect it but ...
The lang file that I have it was produced in admin panel and it comes like this. I did not change something else except I put RO translation instead of xxx in 'Add' => 'xxx' "Add"
I did not catch the modules part because I am not able to write a mod. I guess for 'ScriptUsage' I will have to read more to understand. Or I just translate all between "\nUsage: php script.php ..." as per your example assuming you put "" correctly (and not '' as usual)
I am confused: do I need to change all ... => 'romanian translation' in ...=> "romanian translation" ?

I will give it a try and let you know. Thanks for help.



Edited 1 time(s). Last edit at 04/13/2007 08:01AM by imedic.
Re: Can I translate it into Romanian ?
April 13, 2007 09:01AM
I don't think the admin language tool would deliver a non working language file. It's more likely a typo, introducting a PHP error.

The language file is pure PHP code, so you should honour the PHP syntax. Whether you to use " or ' is up to you.The string 'romanian translation' and "romanian translation" are both correct PHP and will not do anything different. Using ' could be useful in case you want to write something like 'this is a "cool" translation' (because you cannot use ' inside '....' without causing a syntax error). Using " could be useful if you want to write "this site's translation is cool". There are more ways thought. It's also valid to write 'this is a \'cool\' translation'. More than one way to do it and all of them are right.

The '***'.'original english text' strings that are generated by the language tool are there to make searching in the file easy for you and to see *** in the web page if you forgot to change a string. So you can search for *** to find the missing translations. The *** is only a marker and not the place where you need to put in your translation.Thus if you see this in the generated language file:
   "LanguageKey"  => '***'."LanguageValue",
then your translation needs to look like:
   "LanguageKey"  => "Translated LanguageValue",
or what also would be okay (to demonstrate the use of different quotes):
   'LanguageKey'  => 'Translated LanguageValue',

I hope this helps.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Can I translate it into Romanian ?
April 13, 2007 10:29AM
Got my first lesson of php! And I understand all.
Thank you. I'll get back to work and come with a usable translation file.
Re: Can I translate it into Romanian ?
April 13, 2007 03:23PM
still no success.
I have corrected the extra '. and deleted extra text " "
I have managed sometimes to see in the admin panel the drop down menu for language but the Romanian one still is not there to select.
I am adding the new lang file.
[www.injectia.ro]

Can I have some help please!
Re: Can I translate it into Romanian ?
April 13, 2007 03:36PM
If you attach your file here in the forum, we can help you. I do not have any rar tools on my Linux laptop, so I cannot unpack your rom.rar. Either that or put it on your website as rom.php.txt or so, so it can be downloaded directly.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Can I translate it into Romanian ?
April 13, 2007 06:15PM
Quote
imedic
still no success.
I have corrected the extra '. and deleted extra text " "

Can I have some help please!

You also got rid of the commas at the end of each line.

Every line needs to be separeted with a comma, or to be more specific, you are editing an array, or array key-value pairs.

Those value pairs ("key" => "value") are separeted from the other key value pairs with comma. (except the last key value pair can't have comma after it)

---
-=[ Panu ]=-
Re: Can I translate it into Romanian ?
April 13, 2007 06:28PM
Quote
Panu
except the last key value pair can't have comma after it

Actually, in PHP (and Perl too) it is allowed to do so. It's a good way of preventing yourself from forgetting a comma when reordering the list or appending to it.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Can I translate it into Romanian ?
April 14, 2007 06:31AM
I have redo the translation, debug and her it is the functional file:
[www.injectia.ro]



Edited 1 time(s). Last edit at 04/14/2007 05:05PM by imedic.
Re: Can I translate it into Romanian ?
April 14, 2007 07:14AM
Gotta run now, but a quick look at the file learns that the PHP syntax is pretty broken. You've got dots at the end of the lines now, instead of comma's for example. A quick search and replace didn't help, because there are more problems as it seems. Maybe I'll have time later today to look at it some more.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Can I translate it into Romanian ?
April 14, 2007 12:43PM
Don't bother. I will use original Eng file and do it again. It was a bad choice to use the tool in the admin panel to make a file.
Back to the drawing board :(
...
Finished!!! Here is the link. Just rename/save to romanian.php!
[www.injectia.ro]



Edited 3 time(s). Last edit at 04/14/2007 05:19PM by imedic.
Sorry, only registered users may post in this forum.

Click here to login