Skip to content

Commit

Permalink
Update copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
t11r committed Jan 6, 2025
1 parent eb7edb1 commit e8d12d5
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 41 deletions.
66 changes: 29 additions & 37 deletions build/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,43 +110,35 @@ export function checkTranslationFiles(
return results;
}

/*
$translate() should always fit into a single line and only have single-quoted
strings as parameters. The function params may contain ternary operators, but
translated strings must never be concatenated or otherwise “built” for the
automated translation tests to work:
// good
$translate('String');
// good
$translate('String', 'Fallback string');
// good
$translate(first ? 'String' : 'Other string');
// bad
$translate('String' + ' ' + 'another string');
// bad
$translate(
'String',
);
// bad
$translate(1);
// bad
$translate(
'1',
`2`,
);
// very bad!
$translate('',
'2',
);
*/
/**
* Find all proper occurrences of $translate()
*
* $translate() should always fit into a single line and only have single-quoted
* strings as parameters. The function params may contain ternary operators, but
* translated strings must never be concatenated or otherwise "built" for the
* automated translation tests to work.
*
* Good examples:
*
* $translate('String');
* $translate('String', 'Fallback string');
* $translate(first ? 'String' : 'Other string');
*
* Bad examples (i.e. would not be found):
*
* $translate('String' + ' ' + 'another string');
* $translate(
* 'String',
* );
* $translate(1);
* $translate(
* '1',
* `2`,
* );
* $translate('',
* '2',
* );
*/
export function findTranslatedStrings(dir, functionName, fileName = '\\.(js|vue)$') {
const files = fs.readdirSync(dir, { withFileTypes: true });
const results = [];
Expand Down
2 changes: 1 addition & 1 deletion public/translations/de.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$language": "Deutsch",
"$copyright": "Copyright &copy; 2017&ndash;2022 <a href='https://www.uni-goettingen.de/'>Universität Göttingen</a>&nbsp;/ <a href='https://www.sub.uni-goettingen.de/'>Staats- und Universitätsbibliothek Göttingen</a>",
"$copyright": "Copyright &copy; 2017&ndash;2025 <a href='https://www.uni-goettingen.de/'>Universität Göttingen</a>&nbsp;/ <a href='https://www.sub.uni-goettingen.de/'>Staats- und Universitätsbibliothek Göttingen</a>",
"$info": "TIFY ist ein schlanker und für Mobilgeräte optimierter IIIF-Dokumenten&shy;betrachter, veröffentlicht unter der <a href='https://www.gnu.org/licenses/agpl-3.0.html.en'>GNU Affero General Public License 3.0</a>.",
"About TIFY": "Über TIFY",
"Brightness": "Helligkeit",
Expand Down
2 changes: 1 addition & 1 deletion public/translations/eo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$language": "Esperanto",
"$copyright": "Kopirajtoj &copy; 2017&ndash;2022 <a href='https://www.uni-goettingen.de/'>Universitato Goettingen</a>&nbsp;/ <a href='https://www.sub.uni-goettingen.de/'>Ŝtata kaj Universitata Biblioteko Goettingen</a>",
"$copyright": "Kopirajtoj &copy; 2017&ndash;2025 <a href='https://www.uni-goettingen.de/'>Universitato Goettingen</a>&nbsp;/ <a href='https://www.sub.uni-goettingen.de/'>Ŝtata kaj Universitata Biblioteko Goettingen</a>",
"$info": "TIFY estas pli svelta kaj pli movebla amika IIIF-dokumentrigardilo publikigita sub la <a href='https://www.gnu.org/licenses/agpl-3.0.html.en'>Ĝenerala Publika Permesilo 3.0 de GNU Affero</a>.",
"About TIFY": "Per TIFY",
"Brightness": "Helecon",
Expand Down
2 changes: 1 addition & 1 deletion public/translations/hr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$language": "Hrvatski",
"$copyright": "Autorska prava &copy; 2017&ndash;2022 <a href='https://www.uni-goettingen.de/'>Universität Göttingen</a>&nbsp;/ <a href='https://www.sub.uni-goettingen.de/'>Staats- und Universitätsbibliothek Göttingen</a>",
"$copyright": "Autorska prava &copy; 2017&ndash;2025 <a href='https://www.uni-goettingen.de/'>Universität Göttingen</a>&nbsp;/ <a href='https://www.sub.uni-goettingen.de/'>Staats- und Universitätsbibliothek Göttingen</a>",
"$info": "TIFY je mali i optimiziran za mobilne uređaje preglednik IIIF dokumenata, otorenog koda prema <a href='https://www.gnu.org/licenses/agpl-3.0.html.en'>GNU Affero General Public License 3.0</a>.",
"About TIFY": "O TIFY-ju",
"Brightness": "Svjetlina",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ViewHelp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
computed: {
// NOTE: If $t is returned directly, this text won’t update when the language is changed via API
copyrightHtml() {
return 'Copyright &copy; 2017&ndash;2022'
return 'Copyright &copy; 2017&ndash;2025'
+ ' <a href="https://www.uni-goettingen.de/en/">Göttingen University</a>'
+ '&nbsp;/ '
+ '<a href="https://www.sub.uni-goettingen.de/en/">Göttingen State and University Library</a>';
Expand Down

0 comments on commit e8d12d5

Please sign in to comment.