From 89ef5ced796114dde346c64d01add9e20e9b62c6 Mon Sep 17 00:00:00 2001 From: Banana Date: Sat, 20 Apr 2024 10:08:29 +0200 Subject: [PATCH] i18n sysfields Signed-off-by: Banana --- upgrade/from-version-1.6.txt | 31 +++++++++++++++++ webclient/i18n/eng.ini | 33 ++++++++++++++++++- webclient/view/98/entry/field-date.html | 2 +- .../view/98/entry/field-lookupmultiple.html | 2 +- webclient/view/98/entry/field-number.html | 2 +- webclient/view/98/entry/field-selection.html | 2 +- webclient/view/98/entry/field-text.html | 2 +- webclient/view/98/entry/field-text3.html | 2 +- webclient/view/98/entry/field-textarea.html | 2 +- webclient/view/98/entry/field-unknown.html | 2 +- webclient/view/98/entry/field-upload.html | 2 +- .../field-upload_multiple-attachment.html | 2 +- .../view/98/entry/field-upload_multiple.html | 2 +- webclient/view/98/entry/field-year.html | 2 +- .../98/manageentry/field-lookupmultiple.html | 2 +- .../view/98/manageentry/field-number.html | 2 +- .../view/98/manageentry/field-selection.html | 2 +- webclient/view/98/manageentry/field-text.html | 2 +- .../view/98/manageentry/field-text3.html | 2 +- .../view/98/manageentry/field-textarea.html | 2 +- .../view/98/manageentry/field-unknown.html | 2 +- .../view/98/manageentry/field-upload.html | 2 +- .../98/manageentry/field-upload_multiple.html | 2 +- webclient/view/98/manageentry/field-year.html | 2 +- webclient/view/default/entry/field-date.html | 2 +- .../default/entry/field-lookupmultiple.html | 2 +- .../view/default/entry/field-number.html | 2 +- .../view/default/entry/field-selection.html | 2 +- webclient/view/default/entry/field-text.html | 2 +- webclient/view/default/entry/field-text3.html | 2 +- .../view/default/entry/field-textarea.html | 2 +- .../view/default/entry/field-unknown.html | 2 +- .../view/default/entry/field-upload.html | 2 +- .../default/entry/field-upload_multiple.html | 2 +- webclient/view/default/entry/field-year.html | 2 +- .../manageentry/field-lookupmultiple.html | 2 +- .../default/manageentry/field-number.html | 2 +- .../default/manageentry/field-selection.html | 2 +- .../view/default/manageentry/field-text.html | 2 +- .../view/default/manageentry/field-text3.html | 2 +- .../default/manageentry/field-textarea.html | 2 +- .../default/manageentry/field-unknown.html | 2 +- .../default/manageentry/field-upload.html | 2 +- .../manageentry/field-upload_multiple.html | 2 +- .../view/default/manageentry/field-year.html | 2 +- 45 files changed, 106 insertions(+), 44 deletions(-) diff --git a/upgrade/from-version-1.6.txt b/upgrade/from-version-1.6.txt index 5576e90..d81ca5b 100644 --- a/upgrade/from-version-1.6.txt +++ b/upgrade/from-version-1.6.txt @@ -23,4 +23,35 @@ UPDATE `#REPLACEME#_menu` SET `text` = 'menu.manage.collections' WHERE `#REPLACE UPDATE `#REPLACEME#_menu` SET `text` = 'menu.manage.users' WHERE `#REPLACEME#_menu`.`id` = 8; UPDATE `#REPLACEME#_menu` SET `text` = 'menu.manage.profile' WHERE `#REPLACEME#_menu`.`id` = 16; UPDATE `#REPLACEME#_menu` SET `text` = 'menu.manage.groups' WHERE `#REPLACEME#_menu`.`id` = 17; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.title' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'title'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.description' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'description'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.content' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'content'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.tag' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'tag'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.category' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'category'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.category' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'publisher'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.developer' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'developer'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.platform' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'platform'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.storage' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'storage'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.rating' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'rating'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.year' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'year'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.coverimage' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'coverimage'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.attachment' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'attachment'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.os' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'os'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.actors' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'actors'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.countries' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'countries'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.directors' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'directors'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.genres' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'genres'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.languages' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'languages'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.runtime' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'runtime'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.imdbrating' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'imdbrating'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.viewcount' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'viewcount'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.writers' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'writers'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.localizedTitle' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'localizedTitle'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.gameEngine' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'gameEngine'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.view' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'view'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.sysReq' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'sysReq'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.artist' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'artist'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.artists' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'artists'; +UPDATE `#REPLACEME#_sys_fields` SET `displayname` = 'sysfield.isbn' WHERE `#REPLACEME#_sys_fields`.`identifier` = 'isbn'; +ALTER TABLE `#REPLACEME#_sys_fields` CHANGE `displayname` `displayname` VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL; ``` diff --git a/webclient/i18n/eng.ini b/webclient/i18n/eng.ini index 21b8680..4bffcd0 100644 --- a/webclient/i18n/eng.ini +++ b/webclient/i18n/eng.ini @@ -139,7 +139,6 @@ manageentry.message.editNewEntry = "Edit your new entry" manageentry.message.missingTitle = "Provide at least 'Title'." manageentry.message.noTitle = "Entry has no value in title field." manageentry.message.viewNewEntry = "View your new entry" -manageentry.missingtemplate = "Missing template for:" manageentry.possibleduplicate = "Possible duplicate" manageentry.select.bulkedit = "Select bulk edit option" manageentry.select.bulkedit.add = global.add @@ -242,6 +241,38 @@ sysinfo.th.diskusage = "Disk Usage" sysinfo.th.entries = "Entries" sysinfo.th.tags = global.tags +sysfield.actors = "Actors" +sysfield.artist = "Artist" +sysfield.artists = "Artists" +sysfield.attachment = "Attachment" +sysfield.category = "Category" +sysfield.content = "Main Content" +sysfield.countries = "Countries" +sysfield.coverimage = "Cover image" +sysfield.description = "Description" +sysfield.developer = "Developer" +sysfield.directors = "Directors" +sysfield.gameEngine = "Game engine" +sysfield.genres = "Genres" +sysfield.imdbrating = "IMDB rating" +sysfield.isbn = "ISBN" +sysfield.languages = "Languages" +sysfield.localizedTitle = "Localized title" +sysfield.os = "Operating system and version" +sysfield.platform = "Platform" +sysfield.publisher = "Publisher" +sysfield.rating = "Rating" +sysfield.runtime = "Runtime (min)" +sysfield.storage = "Storage" +sysfield.sysReq = "System Requirements" +sysfield.tag = "Tag" +sysfield.title = "Title" +sysfield.view = "View" +sysfield.viewcount = "View counter" +sysfield.writers = "Writers" +sysfield.year = "Year" +sysfield.missingtemplate = "Missing template for:" + tags.headline.tagsfor = "Tags for:" tool.headline.using = "Using %s with collection: %s" diff --git a/webclient/view/98/entry/field-date.html b/webclient/view/98/entry/field-date.html index e34b64d..ceaace0 100644 --- a/webclient/view/98/entry/field-date.html +++ b/webclient/view/98/entry/field-date.html @@ -1,4 +1,4 @@

- : + t($field['displayname']); ?>:

diff --git a/webclient/view/98/entry/field-lookupmultiple.html b/webclient/view/98/entry/field-lookupmultiple.html index 494456e..0cec7c4 100644 --- a/webclient/view/98/entry/field-lookupmultiple.html +++ b/webclient/view/98/entry/field-lookupmultiple.html @@ -1,5 +1,5 @@

- : + t($field['displayname']); ?>: '.$_fv.', '; diff --git a/webclient/view/98/entry/field-number.html b/webclient/view/98/entry/field-number.html index 6f748e8..4210759 100644 --- a/webclient/view/98/entry/field-number.html +++ b/webclient/view/98/entry/field-number.html @@ -1,4 +1,4 @@

- : + t($field['displayname']); ?>:

diff --git a/webclient/view/98/entry/field-selection.html b/webclient/view/98/entry/field-selection.html index 00c8ad1..4d8fc91 100644 --- a/webclient/view/98/entry/field-selection.html +++ b/webclient/view/98/entry/field-selection.html @@ -1,4 +1,4 @@

- : + t($field['displayname']); ?>:

diff --git a/webclient/view/98/entry/field-text.html b/webclient/view/98/entry/field-text.html index aa2573e..2f295c3 100644 --- a/webclient/view/98/entry/field-text.html +++ b/webclient/view/98/entry/field-text.html @@ -1,3 +1,3 @@

- : + t($field['displayname']); ?>:

diff --git a/webclient/view/98/entry/field-text3.html b/webclient/view/98/entry/field-text3.html index 3a65749..2c461b2 100644 --- a/webclient/view/98/entry/field-text3.html +++ b/webclient/view/98/entry/field-text3.html @@ -1,3 +1,3 @@

- : + t($field['displayname']); ?>:

diff --git a/webclient/view/98/entry/field-textarea.html b/webclient/view/98/entry/field-textarea.html index 9600337..5444581 100644 --- a/webclient/view/98/entry/field-textarea.html +++ b/webclient/view/98/entry/field-textarea.html @@ -1 +1 @@ -

:

+

t($field['displayname']); ?>:

diff --git a/webclient/view/98/entry/field-unknown.html b/webclient/view/98/entry/field-unknown.html index f425fde..d630156 100644 --- a/webclient/view/98/entry/field-unknown.html +++ b/webclient/view/98/entry/field-unknown.html @@ -1 +1 @@ -

t('manageentry.missingtemplate'); ?>

+

t('sysfield.missingtemplate'); ?>

diff --git a/webclient/view/98/entry/field-upload.html b/webclient/view/98/entry/field-upload.html index 431301a..d870393 100644 --- a/webclient/view/98/entry/field-upload.html +++ b/webclient/view/98/entry/field-upload.html @@ -1,3 +1,3 @@ -

: +

t($field['displayname']); ?>:

diff --git a/webclient/view/98/entry/field-upload_multiple-attachment.html b/webclient/view/98/entry/field-upload_multiple-attachment.html index 5fc32f3..e00c7fb 100644 --- a/webclient/view/98/entry/field-upload_multiple-attachment.html +++ b/webclient/view/98/entry/field-upload_multiple-attachment.html @@ -1,4 +1,4 @@ -

: +

t($field['displayname']); ?>: