Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0] Languages Overhaul #7853

Merged
merged 35 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
cd29730
Move our languages directory
jdarwood007 Nov 5, 2023
39d83f6
Move agreement file
jdarwood007 Nov 5, 2023
f79ac4c
Upgrader should cleanup things, like old languages
jdarwood007 Nov 5, 2023
1f332e3
Cleanup old agreements
jdarwood007 Nov 5, 2023
480d62f
Update build tools
jdarwood007 Nov 6, 2023
f684e5f
Change over to using locales instead of custom naming
jdarwood007 Nov 11, 2023
d28d1d3
A few missed files
jdarwood007 Nov 11, 2023
7fd1e7f
Rename index.lang to General.
jdarwood007 Nov 11, 2023
46b09ce
Debug info needs to make more sense
jdarwood007 Nov 11, 2023
78f6a7c
Use the canonical form
jdarwood007 Nov 11, 2023
8f6ffd3
We now require themes to always use ThemeStrings for any customizations
jdarwood007 Nov 14, 2023
bf3e4c9
Update composer
jdarwood007 Jan 20, 2024
8abd505
Index updates
jdarwood007 Jan 20, 2024
3a677da
One more time
jdarwood007 Jan 20, 2024
07dbe50
Apply php-cs-fixer
jdarwood007 Jan 22, 2024
5858a32
Minor fixes
jdarwood007 Jan 25, 2024
30150d3
More typos
jdarwood007 Jan 25, 2024
43f78cc
Fix install and upgrader
jdarwood007 Jan 25, 2024
4e78bdf
Missed some logic
jdarwood007 Jan 25, 2024
cac524c
CS fixer wouldn't find these.
jdarwood007 Jan 25, 2024
bf8e85f
Fix issue with a redirect loop if language is set in the old_url sess…
jdarwood007 Jan 26, 2024
547029e
Fix #8043
jdarwood007 Jan 26, 2024
45747c6
Add some logic so the upgrader can know how to handle the new locale …
jdarwood007 Jan 27, 2024
3885285
Add logic to convert our languages during upgrade
jdarwood007 Jan 27, 2024
1f5e7f7
Write a oldLanguage mapper logic to support old file formats for mod …
jdarwood007 Jan 27, 2024
67301ee
Simplifies logic to map old language names to locales
Sesquipedalian Jan 28, 2024
45c2eb0
Tracks loaded language files individually
Sesquipedalian Jan 28, 2024
0addb30
Improves debug tracking of loaded language files & templates
Sesquipedalian Jan 29, 2024
04612aa
Ensures new language files take precedence over old ones
Sesquipedalian Jan 29, 2024
5d4cc9b
Fixes issues in the built-in language editor
Sesquipedalian Jan 28, 2024
af2264e
Fixes a bug in SMF\Actions\Admin\Registration::getConfigVars()
Sesquipedalian Jan 28, 2024
c5643cf
Changes default value of $language setting to 'en_US'
Sesquipedalian Jan 28, 2024
77e176a
Change language to locale in the privacy policy records during upgrade
Sesquipedalian Jan 29, 2024
8a17b8c
Try to guess lang from HTTP_ACCEPT_LANGUAGE even without Locale class
Sesquipedalian Jan 29, 2024
55e3dd4
Locale and charset didn't show correctly.
jdarwood007 Jan 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# SMF Generated Files #
#######################
agreement.txt
/Languages/*
!/Languages/index.php
!/Languages/en_US/
/Languages/en_US/agreement.txt
Settings.php
Settings_bak.php
Settings_org.php
Expand Down
1 change: 1 addition & 0 deletions Themes/default/languages/Admin.english.php → Languages/en_US/Admin.php
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Version: 3.0 Alpha 1; Admin

$txt['settings_saved'] = 'The settings were successfully saved';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Version: 3.0 Alpha 1; Agreement

$txt['agreement'] = 'Registration Agreement';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Version: 3.0 Alpha 1; Alerts

// Load Alerts strings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Version: 3.0 Alpha 1; Drafts

// profile
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Version: 3.0 Alpha 1; Editor

$editortxt['bold'] = 'Bold';
Expand Down
Loading
Loading