fkirc / attranslate

A command line tool for translating JSON, YAML, CSV, ARB, XML (via a CLI)
https://www.npmjs.com/package/attranslate
Other
336 stars 27 forks source link

Target is up-to-date no matter what #252

Closed max-vakario closed 1 year ago

max-vakario commented 1 year ago

Describe the bug Hello, I would love to use this tool but I cannot apparently. I work with .po files (But I've tried with csv and nested-json and I got the same problem). It is well installed, it works (if I set a target location different from the source, the file is generated with the proper keys). BUT nothing is translated. Even if I use service=manual, I don't get any prompt asking me to translate manually. I always get "Target is up-to-date".

To Reproduce This is what I use : attranslate --srcFile=/home/max/projects/yoschool_repo/main/locale/de/LC_MESSAGES/django.po --srcLng=en --srcFormat=po --targetFile=/home/max/projects/yoschool_repo/main/locale/de/LC_MESSAGES/django.po --targetLng=de --targetFormat=po --service=manual

Expected behavior I expect a prompt asking me to enter a translation for each entry in the .po file

Files Here is the beggining of my .po file


#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-27 13:39+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: enums/EmailSubject.py:10
msgid "$0 invites you to join $1 on YoPlanning"
msgstr ""

#: enums/EmailSubject.py:11
msgid "Welcome to Yoplanning!"
msgstr ""
max-vakario commented 1 year ago

Ok no need to investiguate. A member of my team managed to make it work and now it works for me too. I still don't really know what happend but it's OK now