• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

How do I retrieve the latest translations from Transifex without waiting for Misty?

Scheduled Pinned Locked Moved Developer FAQ
i18ntransifex
11 Posts 4 Posters 589 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by julian
    #1

    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
    1 Reply Last reply
    4
  • julianJ julian referenced this topic on
  • julianJ julian referenced this topic on
  • DownPWD Offline
    DownPWD Offline
    DownPW Translator
    wrote on last edited by
    #2

    @julian

    I may have missed something?
    The Transifex client must be installed in a root folder of nodeBB?

    Because here I installed the client under a standard Windows and I don't see how can I do this correctly.

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #3

    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.

    1 Reply Last reply
    0
  • DownPWD Offline
    DownPWD Offline
    DownPW Translator
    wrote on last edited by DownPW
    #4

    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 works

    I just downloaded the Windows executable for now.

    1 Reply Last reply
    0
  • DownPWD Offline
    DownPWD Offline
    DownPW Translator
    wrote on last edited by DownPW
    #5

    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. 🙂

    @+

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #6

    @DownPW yeah for Windows, it's just the executable as downloaded from the GitHub releases page.

    The script for Linux and Mac does the same thing, it just automatically updates the $PATH variable for you.

    1 Reply Last reply
    0
  • dave1904D Offline
    dave1904D Offline
    dave1904
    wrote on last edited by
    #7

    How can I contribute to german translations?

    1 Reply Last reply
    1
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #8

    @dave1904 the translations are on trasifex, you can create an account and translate german strings https://explore.transifex.com/nodebb/nodebb/

    1 Reply Last reply
    2
  • dave1904D Offline
    dave1904D Offline
    dave1904
    wrote on last edited by
    #9

    Cool, very intuitive

    1 Reply Last reply
    1
  • dave1904D Offline
    dave1904D Offline
    dave1904
    wrote last edited by dave1904
    #10

    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?

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote last edited by
    #11

    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

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development