![]() You can merge those into an existing po-file using a tool like gettext's msgmerge. This will take the Dutch ( nl) translations from texts.xls, and (re)create an nl.po file using those. Translations can be converted back from a spreadsheet into a PO-file using the xls2po command: xls2po nl texts.xlsx nl.po Spreadshseet (.xlsx) to Portable Object (.po) Translator, extracted, reference, all to add more column in the You can also use the -c or -comments option with one of those choices: This will read locales/nl/LC_MESSAGES/mydomain.po and treat it as Dutch For example: po2xls nl:locales/nl/LC_MESSAGES/mydomain.po You can override this by explicitly specifying the locale on the command line. Key in the file metadata, falling back to the filename if no language information Po2xls will guess the locale for a PO file by looking at the Language Traditional Chinese and Dutch translations. This will generate a texts.xlsx file with all simplified Chinese, The Automatic Translation feature uses machine translation characters with Google Translate, Microsoft Translator or DeepL to translate strings in POEditor. PO files can be specified: po2xls -o texts.xlsx zh_CN.po zh_TW.po nl.po This will create a new file messages.xlsx with the Dutch translations. Portable Object (.po) to spreadshseet (.xlsx)Ĭonverting one or more PO-files to an xls file is done with the po2xls XLSXToPortableObjectFile ( locale = "ro", input_file_path = Path ( "ro-example.xlsx" ), output_file_path = Path ( "ro-example.po" ) ) Install From repository pip install. PortableObjectFileToXLSX ( po_files = po_files_to_convert, comment_types =, output_file_path = Path ( "ro-example.xlsx" ) ) # xls2po poet. can use the exporter/importer from another python project, you just import the library after installing it:įrom pathlib import Path import po_excel_translate as poet # po2xls po_files_to_convert = poet.customizable options like width/wrap/protected ranges/fonts.the first row and first columns are freezed so that you can always see the source string you want to translate.NOTE: Original code of this was taken from Information in the file, so make sure never to change these! Comparison IMPORTANT: The first row contains the column headers. To translate text, speech, and websites in more than 100 languages, go to Google Translate page. ![]()
0 Comments
Leave a Reply. |