HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Export all .ini files as .po files FROM ocPortal ?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#72470 (In Topic #15203)
Avatar

Fan in action

Is there a way to export all .ini language files as .po files from the ocPortal software (as a .TAR maybe)?
I know you can go to Add-ons and export a language pack, but it doesn't convert the ini's to po's.

Edit:
I found this is possible to do, but the location was a little hard to find. I had to go to "Edit/Re-translate the software", pick a language and then pick a language file to edit. The the option to export .po language files as a .TAR was on the language file edit page.

I would like to ask that this "language file export" option be put in an easier to reach location if it isn't already.

example: in the Style or Tools menu or maybe on the Add-ons page provide a "export language pack"
with the option to choose the .ini or .po file format.

Edit #2:
Actually, I am going over the global-JA.po that was exported and some of the japanese string contents are garbled.

Differences for : "ONLY_1000_SHOWN "
"Translate the software" : 1000 以上のエントリがある: 最新の 1,000 だけが表示されます。
Exported .po :  "1000 以上のエントリがある: 最新の 1,000 だけが表示され�" "�す。"

It got saved as 2 strings and there were some ?? displayed instead of the characters. The problematic strings displayed as completely unreadable jibberish under some other text applications. After opening it and re-saving it in LibreOffice (OpenOffice), the jibberish problem went away. Maybe its a parsing and encoding problem ? Not sure what caused this.


Last edit: by samurai_jack
Back to the top
 
Posted
Rating:
#72510
Avatar

ocStaff (admin)

I can see what's wrong. The code is splitting up the lines to be compliant with how po files are meant to be written, but it's splitting half-way through multi-byte unicode characters. Working on a fix now.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#72511
Avatar

ocStaff (admin)

The fix will be in the next patch release.

Regarding the placement of the po export option, I agree, but it'd be a couple of hours of work to put it under it's own screen so I can't justify investing that time at the moment.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: