summaryrefslogtreecommitdiff
path: root/test cases/frameworks/6 gettext/data
AgeCommit message (Collapse)Author
2022-03-06i18n module: fix bug that made msgfmthelper die on combinations of argsEli Schwartz
Due to misuse of argparse in commit 82492f5d765b70cc87385fb887008df89fac878e it was impossible to use both --datadirs and extra args passed directly to msgfmt at the same time. I'm not sure anyone actually knows how argparse works, so misusing it is easy. What is definitely known is that argparse is NOT a POSIX compliant parser and doesn't behave the way you'd expect a standards based parser to handle options. Instead it caters to the easy use case, and hopes and prays you don't need to do anything too complicated "with the wrong kind of complicated". Apparently, this particular type of complicated is when you have mixed option_arguments and operands while simultaneously passing some operands as nargs after a --. It totally breaks, and interprets --datadirs, which is supposed to be an option_argument, as an operand, eats it up as a msgfmt wrapped argument, and breaks. But if you don't pass additional arguments with -- then it interprets --datadirs after operands as an option_argument. This is what we were doing. Instead pass option_arguments before all operands (including the ones specified via `-- ...`). Add test case to pass meaningless datadirs (we don't actually care if $GETTEXTDATADIRS is set to something that doesn't contain gettext data).
2021-08-15editorconfig: add setting to trim trailing whitespaceEli Schwartz
and clean up all outstanding issues Skip 'test cases/common/141 special characters/meson.build' since it intentionally uses trailing newlines.
2021-08-09Fix i18n target name when using @BASENAME@ and configure_file() inputXavier Claessens
Fixes: #9022
2018-10-29Fix merge file using an array. Closes #4424.Jussi Pakkanen
2018-10-06Fix a comment in "test cases/frameworks/6 gettext"Masanori Kakura
File "data/data3/meson.build" makes Meson create a target that contains a path separator.
2018-10-06i18n: replace path separator with @Marty E. Plummer
using state.subdir will cause / or \ to be inserted into the target name. Replace them with @ to future-proof it. Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
2018-09-03i18n: respect variable substitution for the target name when merging ↵Corentin Noël
translations Previously it wasn't possible to use twice @BASENAME@ as the targets would then be named @BASENAME@_merge
2016-12-03i18n: Add merge_file functionPatrick Griffis
This is a repeated task that we can simplify Closes #1120