summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-04-07 20:57:34 +0000
committerFedja Beader <fedja@protonmail.ch>2025-04-07 20:57:34 +0000
commit3d57093c605dbebc9a6a86b7666db802ad637ce1 (patch)
tree18fe56950a510be968a567c869b1755d5e863bf2
parent0bcc88159aee0e680d4cdc2949b24b10b571135f (diff)
downloadmv-3d57093c605dbebc9a6a86b7666db802ad637ce1.tar.gz
mv-3d57093c605dbebc9a6a86b7666db802ad637ce1.tar.bz2
mv-3d57093c605dbebc9a6a86b7666db802ad637ce1.tar.xz
mv-3d57093c605dbebc9a6a86b7666db802ad637ce1.zip
Exclude attributes when scanning for translatable strings
attributes such as __attribute__((fallthrough)) Issue found in mana/plus!163 **** mana/plus!164
-rw-r--r--po/POTFILES.in9
-rwxr-xr-xpo/POTgen.sh4
2 files changed, 2 insertions, 11 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5bcdeb29e..0d4765054 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -140,8 +140,6 @@ src/input/pages/other.cpp
src/input/pages/outfits.cpp
src/input/pages/shortcuts.cpp
src/input/pages/windows.cpp
-src/localconsts.h
-src/logger.h
src/net/ea/charserverrecv.cpp
src/net/ea/chatrecv.cpp
src/net/ea/gamerecv.cpp
@@ -155,11 +153,9 @@ src/net/eathena/generalhandler.cpp
src/net/eathena/generalrecv.cpp
src/net/eathena/guildrecv.cpp
src/net/eathena/inventoryrecv.cpp
-src/net/eathena/itemflags.h
src/net/eathena/loginrecv.cpp
src/net/eathena/mail2recv.cpp
src/net/eathena/mailrecv.cpp
-src/net/eathena/maptypeproperty2.h
src/net/eathena/playerrecv.cpp
src/net/eathena/skillrecv.cpp
src/net/eathena/vendingrecv.cpp
@@ -203,12 +199,7 @@ src/resources/modinfo.cpp
src/resources/notifications.h
src/resources/skill/skillinfo.cpp
src/resources/skill/skilltypelist.h
-src/unittests/catch.hpp
-src/unittests/doctest.h
-src/unittests/endian.cc
src/unittests/gui/windowmanager.cc
src/utils/booleanoptions.h
src/utils/gettext.h
src/utils/stringutils.cpp
-src/utils/stringutils.h
-src/utils/xml/libxml.cpp
diff --git a/po/POTgen.sh b/po/POTgen.sh
index a2b1ad31c..12890f41f 100755
--- a/po/POTgen.sh
+++ b/po/POTgen.sh
@@ -16,9 +16,9 @@ printf "# Generated by %s, do not edit manually\n" "$0" > po/POTFILES.in
# See WARNING in manpage of GNU Coreutils sort:
# LC_COLLATE override is required to preserve the order of files
-# across platforms. But it can be override by LC_ALL.
+# across platforms. But it can be overriden by LC_ALL.
# But, LC_ALL should never be set in a sane environment.
-grep "_(" src \
+grep "[^_]_(" src \
--binary-files=without-match \
--files-with-matches \
--recursive \