Commit Graph

32 Commits

Author SHA1 Message Date
Ehren Kret
616aaa4c89 remove SignalMessaging framework 2024-03-12 03:35:34 -05:00
Max Radermacher
93d97da82b
Split “in progress” & “saved” voice message drafts 2023-03-08 15:31:56 -08:00
Max Radermacher
93d4aa9aeb Fix auto-genstrings 2023-03-06 12:18:42 -08:00
Max Radermacher
dee5aed385 Clean up directories we search for translations 2023-02-23 10:37:57 -08:00
Max Radermacher
6f24be6b6a Remove unused plurals when running auto-genstrings
Several strings appear to be unused. As far as I can tell, these were
added in 54b743de2d but never used.

Script output:
PluralAware.stringsdict: Removed THREAD_DETAILS_MORE_MUTUAL_GROUP_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_DAYS_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_DAYS_SHORT_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_HOURS_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_HOURS_SHORT_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_MINUTES_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_MINUTES_SHORT_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_SECONDS_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_SECONDS_SHORT_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_WEEKS_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_WEEKS_SHORT_%d
PluralAware.stringsdict: Removed TIME_AMOUNT_YEARS_%d
2022-10-20 09:57:30 -07:00
Max Radermacher
39135003a4 Fetch translations from Smartling
Smartling exposes a simple REST API that’s fairly easy to adopt.

Some differences from the old approach:

- We get UTF-8 back instead of UTF-16, so there’s no need to use iconv.

- We don’t support “nb_NO”, so we don’t need to remove it each time we
  fetch translations.

- We get back English fallbacks for .stringsdict files, so there’s no
  need to merge them manually ourselves.

- We no longer support country-specific locales *and* the root language,
  so we don’t need to merge, for example, “es” into “es-MX”.

- We handle language mapping & duplication inside the Swift script,
  which will hopefully be more reliable than cp’ing directories.
2022-09-29 16:13:06 -07:00
Max Radermacher
2bec0dcc6f Fix Spanish App Store Connect language support
Use `es` for both `es-ES` and `es-MX`.
2022-07-28 09:43:50 -07:00
Max Radermacher
754e7c59fe
Fix fr/nb App Store Connect language support
- Use “nb” instead of “no” for Norwegian
- Use “fr” for both “fr-FR” and “fr-CA”

Also: Remove redundant `tx pull` for App Store metadata. The next
request forces a fetch of all the supported languages, so the first
fetch isn’t necessary.
2022-07-20 22:02:15 -07:00
Max Radermacher
faea3c50bf Fix l10n_lint URL 2022-05-20 10:12:52 -07:00
Max Radermacher
bbb69e8d74 Check for malformed .stringsdict files
If they’re malformed, Xcode builds will fail while trying to copy the
plist files to the bundle.
2022-05-20 10:12:52 -07:00
Martin Böttcher
89dbebe442 mixing the pluralaware strings uses the main language if appropriate 2022-05-18 11:02:45 -07:00
Martin Böttcher
0269dacd11
improved placeholder checks (#4306) 2022-05-12 08:41:50 +02:00
Martin Böttcher
d012924c71
added placeholder checks (#4295) 2022-05-10 19:50:56 +02:00
Martin Böttcher
54b743de2d
moved older stringsdict changes into new branch; minor changes (#4205)
moved older stringsdict changes into new branch
2022-04-28 17:41:43 +02:00
Jordan Rose
8c1a31e094 auto-genstrings: Fix OWSLocalizedString breakage
genstrings warns on non-constant strings being passed to
NSLocalizedString, but that happens precisely when we define
OWSLocalizedString. Skip the two files where we define it (one for
each language).

While here:
- Use find's -exec feature rather than a separate xargs invocation.
- Make the script shellcheck-clean.
2022-04-05 10:48:05 -07:00
Martin Böttcher
c2d93547ae minor changes due to changed name of NSLocalizedStringFromAppBundle (now OWSLocalizedString) and new location of swift function and preprocessor definition 2022-03-11 14:08:26 +01:00
Martin Böttcher
c0adfbfb32 NSLocalizedString is replaced by NSLocalizedStringFromAppBundle (reading strings from the bundle of the main app) for all source files called by an app extension and the localizable files are removed for the app extension targets. 2022-03-07 13:29:06 +01:00
Matthew Chen
8472571d0a Rename NSE. 2021-10-28 11:40:26 -03:00
Michelle Linington
29de85f0f7 Restore localizations removed after merging SUI 2021-10-19 18:38:53 -07:00
Nora Trapp
59ba9100c9 Sync translations 2021-07-07 15:10:07 -07:00
Nora Trapp
4ae8185b4a Add push fallback text 2021-07-07 13:46:23 -07:00
Michelle Linington
3df24ecd98 Allow translations script look for linter in path
My code directory looks a bit different so it doesn't always exist at
this path.
2021-05-07 19:10:46 -07:00
Nora Trapp
2152a8b0b0 Fix release notes 2021-05-02 11:51:36 -07:00
Nora Trapp
a1b3f557b7 Fix release notes 2021-05-02 10:51:29 -07:00
Nora Trapp
a5fd2ad4bf Sync translations 2021-05-02 10:26:07 -07:00
Nora Trapp
f808813466 Manage app store metadata with transifex 2021-04-22 12:53:43 -07:00
Nora Trapp
92fe7350f1 Fix linting for InfoPlist.strings 2020-07-08 11:40:47 -07:00
Matthew Chen
f2dec8a700 Update l10n strings. 2020-06-07 11:42:16 -03:00
Matthew Chen
9b5004bc2a Fix reference to SCK in auto-genstrings. 2020-04-20 09:17:26 -03:00
Michael Kirk
76c4629acb auto-genstrings handles "=" in our translations 2019-08-13 12:57:47 -03:00
Michael Kirk
74ca0aecb7 update string linter path 2019-07-22 12:41:01 -06:00
Michael Kirk
1b9a8274f6 move localization scripts to Scripts 2019-06-13 09:28:14 -05:00