Skip to content

Commit 82dad99

Browse files
authored
Merge pull request #11063 from IQSS/11043-lang
comment out /dv/lang to prevent verbose logging
2 parents a36db2d + d9214a3 commit 82dad99

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

doc/sphinx-guides/source/container/running/demo.rst

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,25 @@ One you make this change it should be visible in the copyright in the bottom lef
140140
Multiple Languages
141141
++++++++++++++++++
142142

143-
Generally speaking, you'll want to follow :ref:`i18n` in the Installation Guide to set up multiple languages such as English and French.
143+
Generally speaking, you'll want to follow :ref:`i18n` in the Installation Guide to set up multiple languages. (You need to create your own "languages.zip" file, for example.) Here will give you guidance specific to this demo tutorial. We'll be setting up a toggle between English and French.
144144

145-
To set up the toggle between English and French, we'll use a slight variation on the command in the instructions above, adding the unblock key we created above:
145+
First, edit the ``compose.yml`` file and uncomment the following line:
146146

147-
``curl "http://localhost:8080/api/admin/settings/:Languages?unblock-key=unblockme" -X PUT -d '[{"locale":"en","title":"English"},{"locale":"fr","title":"Français"}]'``
147+
.. code-block:: text
148+
149+
#-Ddataverse.lang.directory=/dv/lang
148150
149-
Similarly, when loading the "languages.zip" file, we'll add the unblock key:
151+
Next, upload "languages.zip" to the "loadpropertyfiles" API endpoint as shown below. This will place files ending in ".properties" into the ``/dv/lang`` directory configured above.
152+
153+
Please note that we are using a slight variation on the command in the instructions above, adding the unblock key we created above:
150154

151155
``curl "http://localhost:8080/api/admin/datasetfield/loadpropertyfiles?unblock-key=unblockme" -X POST --upload-file /tmp/languages/languages.zip -H "Content-Type: application/zip"``
152156

153-
Stop and start the Dataverse container in order for the language toggle to work.
157+
Next, set up the UI toggle between English and French, again using the unblock key:
154158

155-
Note that ``dataverse.lang.directory=/dv/lang`` has already been configured for you in the ``compose.yml`` file. The step where you loaded "languages.zip" should have populated the ``/dv/lang`` directory with files ending in ".properties".
159+
``curl "http://localhost:8080/api/admin/settings/:Languages?unblock-key=unblockme" -X PUT -d '[{"locale":"en","title":"English"},{"locale":"fr","title":"Français"}]'``
160+
161+
Stop and start the Dataverse container in order for the language toggle to work.
156162

157163
Next Steps
158164
----------

docker-compose-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ services:
5757
-Ddataverse.pid.fake.label=FakeDOIProvider
5858
-Ddataverse.pid.fake.authority=10.5072
5959
-Ddataverse.pid.fake.shoulder=FK2/
60-
-Ddataverse.lang.directory=/dv/lang
60+
#-Ddataverse.lang.directory=/dv/lang
6161
ports:
6262
- "8080:8080" # HTTP (Dataverse Application)
6363
- "4949:4848" # HTTPS (Payara Admin Console)

docker/compose/demo/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
-Ddataverse.pid.fake.label=FakeDOIProvider
2727
-Ddataverse.pid.fake.authority=10.5072
2828
-Ddataverse.pid.fake.shoulder=FK2/
29-
-Ddataverse.lang.directory=/dv/lang
29+
#-Ddataverse.lang.directory=/dv/lang
3030
ports:
3131
- "8080:8080" # HTTP (Dataverse Application)
3232
- "4848:4848" # HTTP (Payara Admin Console)

0 commit comments

Comments
 (0)