aboutsummaryrefslogtreecommitdiffstats
path: root/sync-translations.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-12-23 14:55:29 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-12-23 14:55:29 +0100
commita613fec2ff46abf5eb6827846e37efb88a4d5f4a (patch)
tree6d012fcfbab87c9e584a9e824d44a2f2a454a36f /sync-translations.sh
parentUI: macOS: Group more than 10 tunnels into submenu (diff)
downloadwireguard-apple-a613fec2ff46abf5eb6827846e37efb88a4d5f4a.tar.xz
wireguard-apple-a613fec2ff46abf5eb6827846e37efb88a4d5f4a.zip
project: sync translations and improve id generation again
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'sync-translations.sh')
-rwxr-xr-xsync-translations.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync-translations.sh b/sync-translations.sh
index c855aab..968a446 100755
--- a/sync-translations.sh
+++ b/sync-translations.sh
@@ -23,7 +23,7 @@ done < Sources/WireGuardApp/Base.lproj/Localizable.strings
git add Sources/WireGuardApp/*.lproj
declare -A LOCALE_MAP
-[[ $(< WireGuard.xcodeproj/project.pbxproj) =~ [[:space:]]([0-9A-F]{24})\ /\*\ Base\ \*/, ]]
+[[ $(< WireGuard.xcodeproj/project.pbxproj) =~ [[:space:]]([0-9A-F]{24})\ /\*\ Base\ \*/\ =\ [^$'\n']*Base\.lproj/Localizable\.strings ]]
base_id="${BASH_REMATCH[1]:0:16}"
idx=$(( "0x${BASH_REMATCH[1]:16}" ))
while read -r filename; do