Skip to content

Commit 7fcdf24

Browse files
authored
Merge pull request #928 from Exiv2/DutchLocalisation
Corrections to README.md 2.8.Localisation
2 parents ab375fb + 9679be9 commit 7fcdf24

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ g++ -std=c++98 myprogram.cpp -o myprogram $(pkg-config exiv2 --libs --cflags)
248248

249249
Localisation is supported on a UNIX-like platform: Linux, MacOS-X, Cygwin and MinGW/msys2. Localisation is not supported for Visual Studio builds.
250250

251-
To build localisation support, use the CMake option **`-DEXIV2_BUILD_PO=On`**. There are no additional build steps as the normal build commands will compile the library, samples and localisation support. You must install the build to ensure the localisation message files can be found at run-time.
251+
To build localisation support, use the CMake option `-DEXIV2_BUILD_PO=ON`. There are no additional build steps as the normal build commands will compile the library, samples and localisation support. You must install the build to ensure the localisation messages files can be found at run-time.
252252

253-
1) Running exiv2 in a foreign language
253+
1) Running exiv2 in another language
254254

255255
```bash
256256
$ env LANG=fr_FR exiv2 # env LANGUAGE=fr_FR exiv2 on Linux!
@@ -299,11 +299,12 @@ $ msgfmt --output-file=po/xy/LC_MESSAGES/exiv2.mo po/xy.po
299299

300300
2.4) Install and test your messages:
301301

302-
You have to install your messages to test them. It's not possible to test a message file from the build/bin directory.
302+
You have to install your messages to test them. It's not possible to test a messages file by executing build/bin/exiv2.
303303

304304
```bash
305-
$ sudo cp -R po/xy /usr/local/share/locale/xy
306-
$ env LANG=xy exiv2 # env LANGUAGE=xy on Linux!
305+
$ sudo mkdir -p /usr/local/share/locale/xy/LC_MESSAGES
306+
$ sudo cp -R po/xy/LC_MESSAGES/exiv2.mo /usr/local/share/locale/xy/LC_MESSAGES
307+
$ env LANG=xy exiv2 # env LANGUAGE=xy on Linux!
307308
exiv2: An action must be specified
308309
exiv2: At least one file is required
309310
Usage: exiv2 [ options ] [ action ] file ...
@@ -314,7 +315,17 @@ $
314315

315316
2.5) Submitting your new language file for inclusion in future versions of Exiv2:
316317

317-
Open a new issue on https://github.com/exiv2/exiv2 and attach the file po/xy/exiv2.po
318+
You may submit a PR which contains po/xy.po AND a modification to po/CMakeLists.txt
319+
320+
Or, open a new issue on https://github.com/exiv2/exiv2 and attach the file xy.po.zip which can be created as follows:
321+
322+
```
323+
$ zip xy.po.zip po/xy.po
324+
adding: po/xy.po (deflated 78%)
325+
ls -l xy.po.zip
326+
-rw-r--r--+ 1 rmills staff 130417 25 Jun 10:15 xy.po.zip
327+
$
328+
```
318329

319330

320331
[TOC](#TOC)
@@ -860,4 +871,4 @@ FreeBSD uses pkg as the package manager. You should install the dependency expa
860871
861872
Robin Mills
862873
863-
Revised: 2019-05-11
874+
Revised: 2019-05-11

po/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
find_package(Gettext REQUIRED)
22

3-
GETTEXT_CREATE_TRANSLATIONS(exiv2.pot ALL
3+
GETTEXT_CREATE_TRANSLATIONS(exiv2.pot ALL
44
bs.po
55
de.po
66
ca.po

0 commit comments

Comments
 (0)