Commit Graph

12 Commits

Author SHA1 Message Date
luccioman
665d087d76 Enforced access controls on a few more administration pages.
- ensure use of HTTP POST method when performing server side effect
operations
 - transaction token required to ensure the request has effectively been
requested by user interaction
2017-04-03 12:20:16 +02:00
reger
290ca9e914 make error msg part of html (allowing translation) instead of hardcoded text 2016-08-29 01:27:09 +02:00
reger
f8d6543a23 Rename class CreateTranslationMaster to TranslationManager and add
additional routines and the capability to handle translation maps internally 
(to reduce complexity of handling translation maps for calling servelets)
2016-08-28 23:08:03 +02:00
reger
d3d2df7087 Translator_p handle lang "browser" like "default" 2016-08-23 03:37:32 +02:00
reger
5bbedad091 use config for path to locales in Translator servlet 2016-08-15 04:13:06 +02:00
reger
f1be40eb07 Translator servlet filename drop-down list on "filter untranslated" switch,
filter list to contain only files with not translated items
2016-06-18 17:06:40 +02:00
reger
a3ac6ca7df add button (Translator servlet) to switch one already translated line in edit mode 2016-06-15 22:32:27 +02:00
reger
e952e355a2 have Translator servlet adhoc apply added translation by translating a single file
+ fix NPE in Translator, coming from translation read by TranslatorXliff 
  which allows null content for not translated key's
2016-06-14 22:14:46 +02:00
reger
5b22c63030 Adjust TranslatorXliff to load default 1st and merge downloaded or modified local translation.
process 1. load default from locales/*.* 
        2. load and merge(overwrite) from DATA/LOCALE/*.* (can be partial translation as it is merged)
- include all entries from DATA/LOCAL to be edited in Translator servlet
  and save just modifications (instead of full list) to DATA/LOCALE

This shall make it easy to share modifications.
2016-06-05 23:01:45 +02:00
reger
786c92f95d disable input field of translated text in Translator_p servlet
As currently only adding missing translation is supported
2016-06-04 23:51:28 +02:00
reger
e46245b819 fix accidental use of Java 8 function in Translator_p
thanks to luccioman
2016-06-03 21:42:14 +02:00
reger
a6ba1faa80 introduce a translation edit servlet Translator_p.html YaCy's UI text translation
This is the 1st rudimentary approach to support the translatio utilities.
It allows currently to edit untranslated text and save it in a local translation file
in the DATA/LOCALE directory.
+ refactor Translator (less static's) to leverage on class overrides and support garbage collection for this 1 time routine
+ adjust TranslatorXliff to check for local translations in DATA/LOCALE,
  this includes storing manually downloaded translation files in DATA as well 
  (to keep default untouched)
+ on 1st call of Translator_p a master tanslation file is generated, checking
the supported languages for missing translation text (later this masterfile is planned to part of the distribution, to harmonize translation key text between the languages)
Outlook: the local modifications (possibly as translation fragments instead of complete file) to be shared with maintainer using xlif features.
2016-06-03 01:46:30 +02:00