Hi,
I have installed a native Ironwood instance of edX. The installation process was flawless but now, I’m trying to install additional languages following the official i18n and l10n guide (https://github.com/edx/edx-platform/wiki/Internationalization-and-localization) that has worked for me in previous versions. But it is not working anymore.
My process has been the following:
- Switch to edxapp environment:
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
- Configure the
~/.transifexrc
file:
[https://www.transifex.com]
hostname = https://www.transifex.com
username = mytransifexuser
password = mytransifexpass
token =
-
uncomment the languages that I am interested on this file
conf/locale/config.yaml
(especifically, eu_ES) -
In
lms/envs/common.py
, replace ‘en’ by ‘eu-es’ (can I add more languages here? if so, how (for example, ‘es-es’, ‘en’, ‘eu-es’ in a comma separated values… with parenthesis )? should I maintain ‘en’?)
LANGUAGE_CODE = 'eu-es'
- while being in edx-platform directory, execute this command:
paver i18n_robot_pull
And here is where I got the first error:
---> pavelib.i18n.i18n_transifex_pull
---> pavelib.i18n.i18n_validate_transifex_config
i18n_tool transifex pull
Pulling conf/locale/config.yaml:locales from Transifex...
tx ERROR: Run 'tx init' to initialize your project first!
tx ERROR: Cannot find the config file (.tx/config)!
There is no mention to tx init
in the guide, but well, let’s try it:
$ tx init
_____ _ __
|_ _| __ __ _ _ __ ___(_)/ _| _____ __
| || '__/ _` | '_ \/ __| | |_ / _ \ \/ /
| || | | (_| | | | \__ \ | _| __/> <
|_||_| \__,_|_| |_|___/_|_| \___/_/\_\
Welcome to the Transifex Client! Please follow the instructions to
initialize your project.
tx INFO: Creating .tx folder...
tx INFO: Creating config file...
tx INFO: Running tx config command for you...
tx INFO: You need a valid API token to proceed
[?] Enter your api token:
yeah, sure, I can obtain an API token from transifex:
https://www.transifex.com/user/settings/api/
But then, it asks for this:
The Transifex Client syncs files between your local directory and Transifex.
The mapping configuration between the two is stored in a file called .tx/config
in your current directory. For more information, visit
https://docs.transifex.com/client/config/.
[?] Enter the path to your local source file:
And I am lost. Any help would be appreciated and I in return I will update the guide (once I know how to deal with this problem