From e7e2fbd246598f39f0fcbb1680b2606e87ea3c06 Mon Sep 17 00:00:00 2001 From: Banana Date: Fri, 19 Apr 2024 21:16:59 +0200 Subject: [PATCH] i18n messages from php files Signed-off-by: Banana --- TODO | 2 + webclient/i18n/eng.ini | 50 ++++++++++++++++--- .../view/compact/managetags/managetags.html | 2 +- .../default/advancedsearch/advancedsearch.php | 4 +- webclient/view/default/auth/auth.php | 4 +- webclient/view/default/bulkedit/bulkedit.php | 8 +-- .../view/default/collections/collections.php | 2 +- webclient/view/default/entry/entry.php | 4 +- .../managecollectionfields.php | 4 +- .../managecolletions/managecolletions.html | 6 +-- .../managecolletions/managecolletions.php | 10 ++-- .../view/default/manageentry/manageentry.php | 15 +++--- .../default/managegroups/managegroups.php | 10 ++-- .../view/default/managetags/managetags.php | 6 +-- .../view/default/manageusers/manageusers.php | 10 ++-- webclient/view/default/profile/profile.php | 4 +- webclient/view/default/system/menu.php | 2 +- webclient/view/default/tags/tags.php | 2 +- .../view/default/tool/tool-googlebooks.php | 11 ++-- webclient/view/default/tool/tool-imdbweb.php | 13 +++-- .../view/default/tool/tool-musicbrainz.php | 13 +++-- webclient/view/default/tool/tool.php | 4 +- 22 files changed, 111 insertions(+), 75 deletions(-) diff --git a/TODO b/TODO index d2af478..78e0511 100644 --- a/TODO +++ b/TODO @@ -6,3 +6,5 @@ * update JS and remove deprecations * Definition of fields in "card view" + +* language setting in setup diff --git a/webclient/i18n/eng.ini b/webclient/i18n/eng.ini index 3735e17..5ce40b0 100644 --- a/webclient/i18n/eng.ini +++ b/webclient/i18n/eng.ini @@ -40,6 +40,14 @@ global.group = "Group" global.image = "Image" global.latest = "Latest" global.login = "Login" +global.message.couldNotBeSaved = "Data could not be saved. See logs for more." +global.message.couldNotLoadCollection = "Can not load given collection." +global.message.dataSaved = "Data saved successfully" +global.message.here = "Here" +global.message.invalidSearchTerm = "Invalid search term" +global.message.missingQueryParams = "Missing required query parameters." +global.message.nothingFound = "Nothing found." +global.message.somethingWentWrong = "Something went wrong. See logs for more details." global.name = "Name" global.none = "None" global.none = "None" @@ -67,6 +75,7 @@ advsearch.input.description = "This uses the table view as default. Remember to advsearch.input.search.label = "Search for" advsearch.input.search.placeholder = "See search syntax for options" advsearch.input.tableview.label = "Table view" +advsearch.message.wrongInputFormat = "Wrong input format." advsearch.operators = "Possible search operators:" advsearch.operators.asterisk = "The asterisk serves as the truncation (or wildcard) operator. Unlike the other operators, it is appended to the word to be affected. Words match if they begin with the word preceding the * operator." advsearch.operators.greater = "A leading greater than sign indicates that rows greater than the number will be returned." @@ -80,8 +89,13 @@ advsearch.tableview.description = "Make sure to define the fields which will be advsearch.togglesearch = "Toggle search" auth.logout = "Logout" +auth.message.invalidInput = "Invalid username or password." +auth.message.missingInput = "Please provide valid e-Mail and password." bulkedit.headline.edit = "Bulkedit these entries in:" +bulkedit.message.canNotUpdate = "Entry could not be updated. See log for more details:" +bulkedit.message.entryUpdated = "Entry updated:" +bulkedit.message.missingItems = "Missing required search items to work with." managecol.addmodify = "Add or modify a collection" managecol.addremfield = "Add or remove a field" @@ -108,10 +122,21 @@ managecol.input.overwriterights.howto = "Warning: This will overwrite existing e managecol.input.tools = "Tools" managecol.managecol = "Manage your collections" managecol.managefields = "Manage your fields for:" +managecol.message.couldNotBeDelete = "Collection could not be deleted." +managecol.message.couldNotBeUpdated = "Collection could not be updated." +managecol.message.missingRights = "Provide name, owner, group and valid rights." +managecol.message.notBeCreated = "Collection could not be created." manageentry.addentry = "Add an entry to:" manageentry.addentrycollection = "Add an entry to your collection" manageentry.availabletools = "Available tools" +manageentry.message.couldNotBeAdded = "Entry could not be added." +manageentry.message.couldNotBeRemoved = "Entry could not be removed." +manageentry.message.couldNotBeUpdated = "Entry could not be updated." +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" @@ -125,19 +150,27 @@ managefields.addorremove = "Add or remove a field" managefields.addorremove.description = "Just use drag and drop below to add, remove or order your fields.
Removing a field will remove the stored data from the collection.
Make sure at least the title, cover image and description fields are available." managefields.fieldsavailable = "Available fields" managefields.fieldsfor = "Manage your fields for:" +managefields.message.notUpdate = "Fields could not be updated." +managefields.message.provideValidFields = "Please provide valid fields." -managegroups.groupmanagement = "Group management" managegroups.addormodify = "Add or modify a group" +managegroups.availablegroups = "Available groups" +managegroups.groupmanagement = "Group management" +managegroups.input.delete = global.delete +managegroups.input.delete.howto = "Warning: Content owned by this group will not be deleted and thus only manageable by admin!
Right now don't do this. Only if you are sure there is no usage of this group." managegroups.input.description = global.description managegroups.input.name = global.name -managegroups.input.delete = global.delete managegroups.input.save = global.save -managegroups.input.delete.howto = "Warning: Content owned by this group will not be deleted and thus only manageable by admin!
Right now don't do this. Only if you are sure there is no usage of this group." -managegroups.availablegroups = "Available groups" +managegroups.message.couldNotBeCreated = "Group could not be created." +managegroups.message.couldNotBeDelete = "Group could not be deleted." +managegroups.message.couldNotBeUpdated = "Group could not be updated. Either wrong input or duplicate group name" +managegroups.message.missingName = "Provide name and description." managetags.delete = global.delete managetags.howto = "The actions are top down. If you choose to move and rename, only move will be executed.
Deletion will remove without recover!
If you rename and input an existing one a move will be done instead.
Tag values are stored how they come and treated that way here (case sensitive). In search they are case insensitive." managetags.managetagsin = "Manage Tags in:" +managetags.message.executionError = "Can not execute given options. See logs for more." +managetags.message.notTagsAvailable = "No tags available or something went wrong." managetags.moveorrename = "Move to (rename to existig)" managetags.rename = "Rename" managetags.tagfield = "Tagfield" @@ -155,6 +188,10 @@ manageuser.input.canloging = "Can login" manageuser.input.delete = global.delete manageuser.input.delete.howto = "Warning: Content owned by this user will not be deleted and thus only manageable by admin!
Better disable the user if there is content." manageuser.input.maingroup = "Main group" +manageuser.message.couldNotBeCreated = "User could not be created." +manageuser.message.couldNotBeDelete = "User could not be deleted. Make sure the user is not used anymore." +manageuser.message.couldNotBeUpdated = "User could not be updated. Either wrong input or duplicate user name" +manageuser.message.missingInput = "Provide username, login and a valid user group." manageuser.status = "Status" manageuser.usermanagement = "User management" @@ -181,6 +218,7 @@ profile.input.apitoken.current = manageuser.input.apitoken.current profile.input.apitoken.valid = manageuser.input.apitoken.valid profile.input.createtoken = "Create API Token" profile.input.maingroup = "Main group" +profile.message.couldNotBeUpdated = "Your profile could not be updated." profile.yourprofile = "Manage your profile" sysinfo.headline.sysinfo = "System information" @@ -195,6 +233,4 @@ sysinfo.th.tags = "Tags" tags.headline.tagsfor = "Tags for:" tool.headline.using = "Using %s with collection: %s" - - - +tool.message.missingFiles = "Required tool files can not be found." diff --git a/webclient/view/compact/managetags/managetags.html b/webclient/view/compact/managetags/managetags.html index cdafcb3..9b93cec 100644 --- a/webclient/view/compact/managetags/managetags.html +++ b/webclient/view/compact/managetags/managetags.html @@ -14,7 +14,7 @@
@@ -99,7 +99,7 @@
- + $v) { ?>