From 12266213d098a53c5f005b9afcbbe62771fd580c Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 9 May 2017 18:12:15 +0200 Subject: Shaarli's translation * translation system and unit tests * Translations everywhere Dont use translation merge It is not available with PHP builtin gettext, so it would have lead to inconsistency. --- tpl/default/import.html | 8 ++++---- tpl/default/linklist.html | 30 ++++++++++++++++++++---------- tpl/default/page.footer.html | 4 ++-- tpl/default/pluginsadmin.html | 4 ++-- 4 files changed, 28 insertions(+), 18 deletions(-) (limited to 'tpl') diff --git a/tpl/default/import.html b/tpl/default/import.html index 1f040685..000a50ac 100644 --- a/tpl/default/import.html +++ b/tpl/default/import.html @@ -18,7 +18,7 @@
-


Maximum size allowed: {$maxfilesizeHuman}

+


{'Maximum size allowed:'|t} {$maxfilesizeHuman}

@@ -31,15 +31,15 @@
- Use values from the imported file, default to public + {'Use values from the imported file, default to public'|t}
- Import all bookmarks as private + {'Import all bookmarks as private'|t}
- Import all bookmarks as public + {'Import all bookmarks as public'|t}
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 685821e3..5dab8e9a 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -86,7 +86,7 @@
- {function="t('%s result', '%s results', $result_count)"} + {function="sprintf(t('%s result', '%s results', $result_count), $result_count)"} {if="!empty($search_term)"} {'for'|t} {$search_term} {/if} @@ -117,6 +117,16 @@
+ {ignore}Set translation here, for performances{/ignore} + {$strPrivate=t('Private')} + {$strEdit=t('Edit')} + {$strDelete=t('Delete')} + {$strFold=t('Fold')} + {$strEdited=t('Edited: ')} + {$strPermalink=t('Permalink')} + {$strPermalinkLc=t('permalink')} + {$strAddTag=t('Add tag')} + {ignore}End of translations{/ignore} {loop="links"}