简体   繁体   中英

Convert strings & stringsdict to gettext PO

When localizing iOS and macOS apps, Xcode requires the use of .strings files and additional .stringsdict files (see here ) for encoding pluralization rules. I am looking for a way to combine both of these into a standard format like Gettext PO in order to import them into a translation management tool like Pootle.

.strings files can be converted to PO using prop2po from the Translate Toolkit (see here ). However, I am unable to find anything for including .stringsdict files in the conversion.

It also seems that Xcode does not include the .stringsdict files when exporting localization files (see here ).

Answering myself here. A direct conversion between .stringsdict and .po files is not possible because strings dicts support more than one pluralizable variable whereas PO files have only one single counter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM