0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 05:33:03 -05:00

Allow translation of LW strings

This commit is contained in:
Malte Juergens 2024-09-10 16:52:58 +02:00
parent 90513a5707
commit 3072c26e4f
No known key found for this signature in database
4 changed files with 99 additions and 7 deletions

View file

@ -84,6 +84,6 @@ librewolf-goog-safe-download-description = Allow Safe Browsing to scan your down
librewolf-goog-safe-download-warning1 = All the checks happen locally.
# Footer
librewolf-footer = Useful links
librewolf-footer = Useful linkss
librewolf-config-link = All advanced settings (about:config)
librewolf-open-profile = Open user profile directory

View file

@ -0,0 +1,89 @@
## LibreWolf preferences
# Sidebar
pane-librewolf-title = LibreWolf
category-librewolf =
.tooltiptext = about:config changes, logically grouped and easily accessible
# Main content
librewolf-header = LibreWolf Preferences
librewolf-warning-title = Heads up!
librewolf-warning-description = We carefully choose default settings to focus on privacy and security. When changing these settings, read the descriptions to understand the implications of those changes.
# Page Layout
librewolf-general-heading = Browser Behavior
librewolf-extension-update-checkbox =
.label = Update add-ons automatically
librewolf-sync-checkbox =
.label = Enable Firefox Sync
librewolf-autocopy-checkbox =
.label = Enable middle click paste
librewolf-styling-checkbox =
.label = Allow userChrome.css customization
librewolf-network-heading = Networking
librewolf-ipv6-checkbox =
.label = Enable IPv6
librewolf-privacy-heading = Privacy
librewolf-xorigin-ref-checkbox =
.label = Limit cross-origin referrers
librewolf-broken-heading = Fingerprinting
librewolf-webgl-checkbox =
.label = Enable WebGL
librewolf-rfp-checkbox =
.label = Enable ResistFingerprinting
librewolf-auto-decline-canvas-checkbox =
.label = Silently block canvas access requests
librewolf-letterboxing-checkbox =
.label = Enable letterboxing
librewolf-security-heading = Security
librewolf-ocsp-checkbox =
.label = Enforce OCSP hard-fail
librewolf-goog-safe-checkbox =
.label = Enable Google Safe Browsing
librewolf-goog-safe-download-checkbox =
.label = Scan downloads
# In-depth descriptions
librewolf-extension-update-description = Keep extensions up to date without manual intervention. A good choice for your security.
librewolf-extension-update-warning1 = If you don't review the code of your extensions before every update, you should enable this option.
librewolf-ipv6-description = Allow { -brand-short-name } to connect using IPv6.
librewolf-ipv6-warning1 = Instead of blocking IPv6 in the browser, we suggest enabling the IPv6 privacy extension in your OS.
librewolf-ocsp-description = Prevent connecting to a website if the OCSP check cannot be performed.
librewolf-ocsp-warning1 = This increases security, but it will cause breakage when an OCSP server is down.
librewolf-sync-description = Sync your data with other browsers. Requires restart.
librewolf-sync-warning1 = Firefox Sync encrypts data locally before transmitting it to the server.
librewolf-autocopy-description = Select some text to copy it, then paste it with a middle-mouse click.
librewolf-styling-description = Enable this if you want to customize the UI with a manually loaded theme.
librewolf-styling-warning1 = Make sure you trust the provider of the theme.
librewolf-xorigin-ref-description = Send a referrer only on same-origin.
librewolf-xorigin-ref-warning1 = This may cause breakage. Additionally, even when sent referrers will still be trimmed.
librewolf-webgl-description = WebGL is a strong fingerprinting vector.
librewolf-webgl-warning1 = If you need to enable it, consider using an extension like Canvas Blocker.
librewolf-rfp-description = ResistFingerprinting is the best in class anti-fingerprinting tool.
librewolf-rfp-warning1 = If you need to disable it, consider using an extension like Canvas Blocker.
librewolf-auto-decline-canvas-description = Automatically deny canvas access to websites, without prompting the user.
librewolf-auto-decline-canvas-warning1 = It is still possible to allow canvas access from the urlbar.
librewolf-letterboxing-description = Letterboxing applies margins around your windows, in order to return a limited set of rounded resolutions.
librewolf-goog-safe-description = If you are worried about malware and phishing, consider enabling it.
librewolf-goog-safe-warning1 = Disabled over censorship concerns but recommended for less advanced users. All the checks happen locally.
librewolf-goog-safe-download-description = Allow Safe Browsing to scan your downloads to identify suspicious files.
librewolf-goog-safe-download-warning1 = All the checks happen locally.
# Footer
librewolf-footer = Useful linkss
librewolf-config-link = All advanced settings (about:config)
librewolf-open-profile = Open user profile directory

View file

@ -11,3 +11,10 @@ curl -o browser/locales/l10n.zip "https://codeload.github.com/mozilla-l10n/firef
unzip -qo browser/locales/l10n.zip -d browser/locales/
mv browser/locales/firefox-l10n-main browser/locales/l10n
rm -f browser/locales/l10n.zip
sourcedir="$(pwd)"
set -x
cd "../l10n/en-US"
find . -name '*.ftl' -exec sh -c "mkdir -p \$(dirname $sourcedir/{}) && cat {} >> $sourcedir/{}" \;
cd ..
find . -name '*.ftl' -path en-US -prune -exec sh -c "mkdir -p \$(dirname $sourcedir/browser/locales/l10n/{}) && cat {} >> $sourcedir/browser/locales/l10n/{}" \;

View file

@ -135,11 +135,6 @@ def librewolf_patches():
exec('cp ../patches/pref-pane/librewolf.css browser/themes/shared/preferences/librewolf.css')
exec('cp ../patches/pref-pane/librewolf.inc.xhtml browser/components/preferences/librewolf.inc.xhtml')
exec('cp ../patches/pref-pane/librewolf.js browser/components/preferences/librewolf.js')
# 3) append our locale string values to preferences.ftl
exec('cat browser/locales/en-US/browser/preferences/preferences.ftl ../patches/pref-pane/preferences.ftl > preferences.ftl')
exec('mv preferences.ftl browser/locales/en-US/browser/preferences/preferences.ftl')
# provide a script that fetches and bootstraps Nightly and some mozconfigs
exec('cp -v ../scripts/mozfetch.sh lw/')
@ -166,7 +161,8 @@ if len(args) != 2:
sys.exit(1)
version = args[0]
release = args[1]
if not os.path.exists('librewolf-{}-{}'.format(version, release) + '/configure.py'):
srcdir = "librewolf-{}-{}".format(version, release)
if not os.path.exists(srcdir + '/configure.py'):
sys.stderr.write('error: folder doesn\'t look like a Firefox folder.')
sys.exit(1)