pydio-sync icon indicating copy to clipboard operation
pydio-sync copied to clipboard

Create pt_br.po

Open Carlos-Henreis opened this issue 8 years ago • 5 comments

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

Carlos-Henreis avatar Jan 27 '17 14:01 Carlos-Henreis

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.

7omate avatar Jan 27 '17 15:01 7omate

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

Carlos-Henreis avatar Jan 31 '17 16:01 Carlos-Henreis

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)
  4. (Optional) Run python main.py --extract_html=compile and commit all relevant files.

7omate avatar Feb 03 '17 13:02 7omate

ok I'll check

Carlos-Henreis avatar Feb 03 '17 23:02 Carlos-Henreis

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

jmruas avatar Jul 09 '17 12:07 jmruas