jiti-meet/lang
Дамян Минков 7eda31315f Google & Microsoft calendar API integration (#3340)
* Refactor calendar-sync feature to be loaded on web.

For the web part it just adds new property to enable/disable calendar web integration, disabled by default.

* Initial implementation of retrieving google calendar events.

* Initial implementation of retrieving microsoft calendar events.

* Fixes comments.

* Rework to use the promise part of microsoft-graph-client api.

* Moves dispatching some actions, fixing comments.

* Makes sure we do not initializeClient google-api client multiple times.

* Do not try to login when fetching calendar entries.

The case where there is a calendar type google selected, but not logged in, trying to login on loading welcome page will show a warning that it tried to open a popup, which was denied by browser.

* Updates profile display data on sign in.

* Propagate google-api state to calendar-sync only if we use google cal.

* Adds sign out action.

* Clears the event listener when the popup closes.

* Clears calendarIntegrationInstance on signOut.

* WIP: UI for calendar settings, refactor auth flows

* Clean up some unused constants, functions and exports.

* break circular dependency of function and constant

* Exports only isCalendarEnabled from functions.

* Checks isSignedIn when doing fetchCalendarEntries on web.

* address comments

List microsoftApiApplicationClientID in undocument config.

remove unused SET_CALENDAR_TYPE action

use helper for calendar enabled in bootstrap

reorder actions

reorder imports

change order of signin -> set type -> update profile

add logging for signout error

reword setting dialog desc to avoid redundancy

add jsdoc to microsoft button props

reorder calendar constants

move default state to reducer (not reused anywhere)

update comment about calendar-sync due to removal of getCalendarState

update comment for getCalendarIntegration

remove vague comment

alpha order reducer, return default state on reset

alpha order persistence registry

remove unnecessary getType from apis

update comments in microsoftCalendar

alpha order google-api exports, use api.get in loadGoogleAPI

set jsdoc for google signin props

alpha order googleapi methods

fix calendartab docs

* Moves fetching calendar from APP_WILL_MOUNT to SET_CONFIG.

The web part needs configuration in order to refresh tokens (Microsoft).

* Fixes storing token expire time and refreshing tokens in Microsoft impl.

* Address comments

updateProfile changed to getCurrentEmail

rename result to results

stop storing integration in redux, store if ready for use

use existing helpers to parse redirect url

* update jsdocs, get google app id from redux

* clear integration instead of actual sign out
2018-08-15 13:11:54 -07:00
..
languages-az.json New files added from translate.jitsi.org based on templates 2017-12-28 23:44:49 +00:00
languages-bg.json Commit from translate.jitsi.org by user ibauersachs.: 194 of 379 strings translated (24 fuzzy). 2017-08-22 19:38:52 +00:00
languages-cs.json Commit from translate.jitsi.org by user ibauersachs.: 2 of 379 strings translated (1 fuzzy). 2017-08-22 19:39:07 +00:00
languages-de.json Commit from translate.jitsi.org by user ibauersachs.: 353 of 354 strings translated (0 fuzzy). 2017-06-16 21:31:08 +00:00
languages-eo.json Commit from translate.jitsi.org by user ibauersachs.: 296 of 379 strings translated (7 fuzzy). 2017-08-22 19:39:14 +00:00
languages-es.json Commit from translate.jitsi.org by user ibauersachs.: 307 of 379 strings translated (6 fuzzy). 2017-08-22 19:40:18 +00:00
languages-fa.json New files added from translate.jitsi.org based on templates 2017-12-26 20:48:41 +00:00
languages-fr.json Commit from translate.jitsi.org by user bgrozev.: 348 of 349 strings translated (0 fuzzy). 2017-06-15 15:38:13 +00:00
languages-hu.json New files added from translate.jitsi.org based on templates 2018-03-20 15:52:21 +00:00
languages-hy.json Commit from translate.jitsi.org by user ibauersachs.: 297 of 379 strings translated (7 fuzzy). 2017-08-22 19:38:43 +00:00
languages-it.json Commit from translate.jitsi.org by user ibauersachs.: 137 of 379 strings translated (16 fuzzy). 2017-08-22 19:39:27 +00:00
languages-ja.json New files added from translate.jitsi.org based on templates 2017-12-06 16:44:57 +00:00
languages-kab.json Commit from translate.jitsi.org by user ibauersachs.: 105 of 399 strings translated (10 fuzzy). 2017-11-06 08:22:16 +00:00
languages-ko.json New files added from translate.jitsi.org based on templates 2018-03-27 23:38:51 +00:00
languages-nb.json Commit from translate.jitsi.org by user ibauersachs.: 0 of 379 strings translated (0 fuzzy). 2017-08-22 19:39:33 +00:00
languages-oc.json Commit from translate.jitsi.org by user ibauersachs.: 378 of 379 strings translated (0 fuzzy). 2017-08-22 19:39:39 +00:00
languages-pl.json Commit from translate.jitsi.org by user ibauersachs.: 230 of 379 strings translated (20 fuzzy). 2017-08-22 19:39:47 +00:00
languages-ptBR.json Commit from translate.jitsi.org by user ibauersachs.: 339 of 379 strings translated (1 fuzzy). 2017-08-22 19:39:53 +00:00
languages-ru.json Commit from translate.jitsi.org by user ibauersachs.: 285 of 379 strings translated (7 fuzzy). 2017-08-22 19:39:59 +00:00
languages-sk.json Commit from translate.jitsi.org by user ibauersachs.: 136 of 379 strings translated (15 fuzzy). 2017-08-22 19:40:05 +00:00
languages-sl.json Commit from translate.jitsi.org by user ibauersachs.: 126 of 379 strings translated (15 fuzzy). 2017-08-22 19:40:11 +00:00
languages-sv.json Commit from translate.jitsi.org by user ibauersachs.: 297 of 379 strings translated (7 fuzzy). 2017-08-22 19:40:24 +00:00
languages-tr.json Commit from translate.jitsi.org by user ibauersachs.: 117 of 379 strings translated (19 fuzzy). 2017-08-22 19:40:30 +00:00
languages-vi.json Commit from translate.jitsi.org by user bgrozev.: 349 of 349 strings translated (0 fuzzy). 2017-06-13 14:53:07 +00:00
languages-zhCN.json Commit from translate.jitsi.org by user ibauersachs.: 347 of 379 strings translated (1 fuzzy). 2017-08-22 19:39:00 +00:00
languages.json Add Greek to languages (#3111) 2018-06-12 08:19:12 -07:00
main-az.json New files added from translate.jitsi.org based on templates 2017-12-28 23:44:49 +00:00
main-bg.json Commit from translate.jitsi.org by user damencho.: 399 of 399 strings translated (0 fuzzy). 2017-12-26 20:47:35 +00:00
main-cs.json Commit from translate.jitsi.org by user ibauersachs.: 2 of 379 strings translated (1 fuzzy). 2017-08-22 19:39:07 +00:00
main-de.json Commit from translate.jitsi.org by user damencho.: 446 of 447 strings translated (0 fuzzy). (#3257) 2018-07-20 15:07:29 -05:00
main-eo.json Commit from translate.jitsi.org by user ibauersachs.: 296 of 379 strings translated (7 fuzzy). 2017-08-22 19:39:14 +00:00
main-es.json Commit from translate.jitsi.org by user ibauersachs.: 361 of 399 strings translated (6 fuzzy). 2017-11-06 08:21:19 +00:00
main-fa.json New files added from translate.jitsi.org based on templates 2017-12-26 20:48:41 +00:00
main-fr.json Commit from translate.jitsi.org by user ibauersachs.: 410 of 410 strings translated (0 fuzzy). 2018-01-08 16:03:42 +00:00
main-hu.json New files added from translate.jitsi.org based on templates 2018-03-20 15:52:21 +00:00
main-hy.json Commit from translate.jitsi.org by user ibauersachs.: 297 of 379 strings translated (7 fuzzy). 2017-08-22 19:38:43 +00:00
main-it.json Commit from translate.jitsi.org by user ibauersachs.: 137 of 379 strings translated (16 fuzzy). 2017-08-22 19:39:27 +00:00
main-ja.json New files added from translate.jitsi.org based on templates 2017-12-06 16:44:57 +00:00
main-kab.json Commit from translate.jitsi.org by user ibauersachs.: 105 of 399 strings translated (10 fuzzy). 2017-11-06 08:22:16 +00:00
main-ko.json New files added from translate.jitsi.org based on templates 2018-03-27 23:38:51 +00:00
main-nb.json Commit from translate.jitsi.org by user ibauersachs.: 0 of 379 strings translated (0 fuzzy). 2017-08-22 19:39:33 +00:00
main-oc.json Commit from translate.jitsi.org by user ibauersachs.: 360 of 399 strings translated (6 fuzzy). 2017-11-06 08:21:08 +00:00
main-pl.json Commit from translate.jitsi.org by user ibauersachs.: 230 of 379 strings translated (20 fuzzy). 2017-08-22 19:39:47 +00:00
main-ptBR.json Commit from translate.jitsi.org by user bgrozev.: 447 of 447 strings translated (0 fuzzy). 2018-07-30 14:27:03 -05:00
main-ru.json Commit from translate.jitsi.org by user ibauersachs.: 285 of 379 strings translated (7 fuzzy). 2017-08-22 19:39:59 +00:00
main-sk.json Commit from translate.jitsi.org by user ibauersachs.: 136 of 379 strings translated (15 fuzzy). 2017-08-22 19:40:05 +00:00
main-sl.json Commit from translate.jitsi.org by user ibauersachs.: 126 of 379 strings translated (15 fuzzy). 2017-08-22 19:40:11 +00:00
main-sv.json Commit from translate.jitsi.org by user ibauersachs.: 361 of 399 strings translated (6 fuzzy). 2017-11-06 08:21:29 +00:00
main-tr.json Commit from translate.jitsi.org by user ibauersachs.: 117 of 379 strings translated (19 fuzzy). 2017-08-22 19:40:30 +00:00
main-vi.json Commit from translate.jitsi.org by user ibauersachs.: 339 of 379 strings translated (1 fuzzy). 2017-08-22 19:40:36 +00:00
main-zhCN.json Commit from translate.jitsi.org by user ibauersachs.: 315 of 399 strings translated (8 fuzzy). 2017-11-06 08:21:52 +00:00
main.json Google & Microsoft calendar API integration (#3340) 2018-08-15 13:11:54 -07:00
readme.md Updates translation readme. 2016-10-24 14:42:23 -05:00

readme.md

Jitsi Meet Translation

Jitsi Meet uses i18next library for translation. i18next uses separate json files for each language.

Translating Jitsi Meet

The translation of Jitsi Meet is integrated with Pootle. You can translate Jitsi Meet via our Pootle user interface on http://translate.jitsi.org.

WARNING: Please don't create or edit manually the language files! Please use our Pootle user interface!

Development

If you want to add new functionality for Jitsi Meet and you have texts that need to be translated please use our translation module. It is located in modules/translation. You must add key and value in main.json file in English for each translatable text. Than you can use the key to get the translated text for the current language.

WARNING: Please don't change the other language files except main.json! They must be updated and translated via our Pootle user interface!

You can add translatable text in the HTML:

  • via attribute on HTML element - add data-i18n attribute with value the key of the translatable text.
<span data-i18n="dialog.OK">OK</span>

You can also use APP.translation.generateTranslationHTML(key, options) to get this HTML code as Javascript string.

APP.translation.generateTranslationHTML("dialog.OK") // returns <span data-i18n="dialog.OK">OK</span>

The value in the options parameter will be added in data-i18n-options attribute of the element.

Note: If you dynamically add HTML elements don't forget to call APP.translation.translateElement(jquery_selector) to translate the text initially.

APP.translation.translateString("dialog.OK") // returns the value for the key of the current language file. "OK" for example.

For the available values of options parameter for the above methods of translation module see i18next documentation.

Note: It is useful to add attributes in the HTML for persistent HTML elements because when the language is changed the text will be automatically translated.