* i18n: add args keyword to merge_file * i18n: add testcase to msgfmt argspull/5302/head
parent
8dedddca36
commit
841995cddf
9 changed files with 51 additions and 5 deletions
@ -1,8 +1,9 @@ |
||||
i18n.merge_file( |
||||
input: 'test.desktop.in', |
||||
output: 'test.desktop', |
||||
output: 'test.plugin', |
||||
type: 'desktop', |
||||
po_dir: '../po', |
||||
args: ['--keyword=Description'], |
||||
install: true, |
||||
install_dir: join_paths(get_option('datadir'), 'applications') |
||||
) |
||||
|
@ -1,6 +1,6 @@ |
||||
[Desktop Entry] |
||||
Name=Test |
||||
GenericName=Application |
||||
Comment=Test Application |
||||
Description=Test Application |
||||
Type=Application |
||||
|
||||
|
@ -1,8 +1,10 @@ |
||||
usr/bin/intlprog?exe |
||||
usr/share/locale/de/LC_MESSAGES/intltest.mo |
||||
usr/share/locale/fi/LC_MESSAGES/intltest.mo |
||||
usr/share/locale/ru/LC_MESSAGES/intltest.mo |
||||
usr/share/applications/something.desktop |
||||
usr/share/applications/test.desktop |
||||
usr/share/applications/test.plugin |
||||
usr/share/applications/test2.desktop |
||||
usr/share/applications/test3.desktop |
||||
usr/share/applications/test4.desktop |
||||
|
@ -1,2 +1,4 @@ |
||||
de |
||||
fi |
||||
ru |
||||
|
||||
|
@ -1,3 +1,3 @@ |
||||
langs = ['fi', 'de'] |
||||
langs = ['fi', 'de', 'ru'] |
||||
|
||||
i18n.gettext('intltest', languages : langs) |
||||
|
@ -0,0 +1,34 @@ |
||||
# SOME DESCRIPTIVE TITLE. |
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER |
||||
# This file is distributed under the same license as the intltest package. |
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
||||
# |
||||
msgid "" |
||||
msgstr "" |
||||
"Project-Id-Version: intltest\n" |
||||
"Report-Msgid-Bugs-To: \n" |
||||
"POT-Creation-Date: 2017-05-31 05:16-0500\n" |
||||
"PO-Revision-Date: 2019-04-22 02:38+0300\n" |
||||
"Language: ru\n" |
||||
"MIME-Version: 1.0\n" |
||||
"Content-Type: text/plain; charset=UTF-8\n" |
||||
"Content-Transfer-Encoding: 8bit\n" |
||||
"Last-Translator: \n" |
||||
"Language-Team: \n" |
||||
"X-Generator: Poedit 2.2.1\n" |
||||
|
||||
#: src/intlmain.c:15 |
||||
msgid "International greeting." |
||||
msgstr "Межнациональное приветствие." |
||||
|
||||
#: data/test.desktop.in:3 |
||||
msgid "Test" |
||||
msgstr "Тест" |
||||
|
||||
#: data/test.desktop.in:4 |
||||
msgid "Application" |
||||
msgstr "Приложение" |
||||
|
||||
#: data/test.desktop.in:5 |
||||
msgid "Test Application" |
||||
msgstr "Тестовое приложение" |
Loading…
Reference in new issue