pydio / pydio-sync

Python version of the Pydio synchronization client
https://pydio.com
GNU General Public License v3.0
82 stars 32 forks source link

Create pt_br.po #158

Open Carlos-Henreis opened 7 years ago

Carlos-Henreis commented 7 years ago

Only the creation of pt_br.po already enough for Brazilian Portuguese translations for Pydio sync client?

7omate commented 7 years ago

Hi, thanks for this.

It's mostly enough to create the po file, meaning we can handle the rest (a few things are hard-coded since we don't yet support so many languages).

However we're doing a massing interface rework currently. I'll come back to you next week to see how those changes will look in the new version.

Carlos-Henreis commented 7 years ago

It's ok. If I need any help, I'll be happy to

7omate commented 7 years ago

Hi, I couldn't fully test yet but it should mostly work. There are several typos in your po file (such as "..."; instead of "...;", msgid instead of msgstr and other stuff)

pt_br.po:188:7: syntax error
pt_br.po:718:53: syntax error
pt_br.po:727:42: syntax error
pt_br.po:731:24: syntax error
pt_br.po:735:36: syntax error
pt_br.po:785:33: syntax error
pt_br.po:904: missing 'msgstr' section
pt_br.po:905: missing 'msgstr' section
pt_br.po:945:73: syntax error
pt_br.po:1099: duplicate message definition...
pt_br.po:701: ...this is the location of the first definition
pt_br.po:1103: missing 'msgstr' section
pt_br.po:1104: missing 'msgstr' section
pt_br.po:1321:36: invalid control sequence
pt_br.po:1322: end-of-line within string
msgfmt: found 14 fatal errors

The next step for this version is to edit ui/res/general_configs.html and add pt_br opt And run msgfmt pt_br.po --output-file pt/LC_MESSAGES/pydio.mo and our html compile thing.


To work on the new version of Pydio-sync you need to: 1) checkout the branch materialUI. 2) Run python main.py --extract_html=extract 3) Run msginit --input=pydio.pot --locale=pt_BR --output-file=pt_br.po (details in utils/i18n.py) 3) (Optional) Run python main.py --extract_html=compile and commit all relevant files.

Carlos-Henreis commented 7 years ago

ok I'll check

jmruas commented 7 years ago

Hi, Can't edit any .po file with poedit (WIndows 10). JMRuas