How do I retrieve the latest translations from Transifex without waiting for Misty?
-
Once a day, Misty pulls the latest translations in from Transifex. If you are a translator, and you wish to see your translations in NodeBB sooner rather than later, you can do so by running the
pull
command via the Transifex command line client.-
This is the GitHub repository for the transifex client. The easiest way to install it is to run the script, as directed by the repository itself. When installed, it will expose
tx
as a globally accessible binary.curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
-
You'll probably have to create an API key for your Transifex account, so the client on your machine can interface with Transifex securely. You can create one here.
-
The transifex client will check for your token in a couple of places, one of which is
~/.transifexrc
. Feel free to create that file with the following content:[https://www.transifex.com] username = api password = YOURTOKEN rest_hostname = https://rest.api.transifex.com token = YOURTOKEN
- Transifex does weird things when some of the fields are missing. The above configuration seems to work, so adjust accordingly.
-
You (probably) do not have to do any further setup. The configuration in NodeBB's root folder is enough for Transifex to connect.
Retrieve the latest translations
tx pull
There are a couple useful flags you can pass in to this command. You can discover them by passing in
--help
.-f
to force Transifex to overwrite the local file (occasionally the client gets confused over which file is newer, so this flag helps if you are certain)-l
to only process a specific language, e.g.tx pull -l tr
-r
to only process a specific resource, e.g.tx pull -r nodebb.error
-
-
-
-
No, the script to install the transifex client now just drops the executable in whatever directory you happen to be in, and adds it to your
$PATH
variable. Kind of weird but it works.I am not actually sure how the windows script works though.
-
I was just asking because my nodebb installation is on a Linux server, not Windows.
Windows is just installed on my everyday PC.
I'm just trying to understand how it worksI just downloaded the Windows executable for now.
-
Well I don't really know at the moment.
If you have a tutorial that's a little clearer, I'd be happy to do it for you. Otherwise, it's not a big deal, we'll wait until the work is pushed in a future release.
@+
-
I corrected an already translated string about a month ago. The change is not yet displayed on my installation. I'm not sure how nodebb works with transifex. Once the translations are pulled regularly by Misty, does it work live or does it come with the next core update? Can I retrieve the translations manually while running my instance?
-
Translations are pulled regularly into the develop branch so whenever the next minor version is release ie 3.6.0 they become available. See https://community.nodebb.org/topic/17189/how-do-i-retrieve-the-latest-translations-from-transifex-without-waiting-for-misty for manual commands