Files
RedBear-OS/recipes/tools/gettext/source/gettext-tools/tests/msgfmt-4
T
vasilito facf0c92e0 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

40 lines
927 B
Bash
Executable File

#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
# Test c-format handling.
cat <<EOF >mf-test4.po
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: msgfmt test 4\n"
"PO-Revision-Date: 1996-04-05 19:47+0200\n"
"Last-Translator: Ulrich Drepper <drepper@gnu.org>\n"
"Language-Team: test <test@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
#
#, no-c-format
msgid "no percent"
msgstr "but here %d is one"
#
#, c-format
msgid "in the %d normal %c order %s\n"
msgstr "but %2$c not %3$s here %1$d\n"
#
# If no c-format is given no check is wanted, not only if no-c-format is there.
msgid "This is a string %s"
msgstr "...but this $s not"
EOF
: ${MSGFMT=msgfmt}
${MSGFMT} -o /dev/null mf-test4.po 2> /dev/null
result=$?
exit $result