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

Write script/sql file to update locale table #1404

Open
reedy opened this issue Jul 26, 2023 · 0 comments
Open

Write script/sql file to update locale table #1404

reedy opened this issue Jul 26, 2023 · 0 comments
Labels
enhancement New feature requests or improvements to existing functionality. locale l10n/i18n/locale issues

Comments

@reedy
Copy link
Collaborator

reedy commented Jul 26, 2023

load-data.sql does do it, but it isn't so helpful standalone without modifying the script...

\! echo Importing locales...

LOAD DATA LOCAL INFILE 'locale/locales.dat'
REPLACE INTO TABLE locales
CHARACTER SET utf8
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
(locale, name);

As the locale is the PK, updating this is pretty easy...

@reedy reedy added enhancement New feature requests or improvements to existing functionality. locale l10n/i18n/locale issues labels Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature requests or improvements to existing functionality. locale l10n/i18n/locale issues
Projects
None yet
Development

No branches or pull requests

1 participant