mirror of https://github.com/jitsi/jitsi-meet
parent
04cfbafc33
commit
3032ea7684
@ -0,0 +1,4 @@ |
||||
{ |
||||
"en": "English", |
||||
"bg": "Bulgarian" |
||||
} |
@ -0,0 +1,120 @@ |
||||
{ |
||||
"contactlist": "CONTACT LIST", |
||||
"connectionsettings": "Connection Settings", |
||||
"poweredby": "powered by", |
||||
"downloadlogs": "Download logs", |
||||
"welcomepage":{ |
||||
"go": "GO", |
||||
"roomname": "Enter room name", |
||||
"disable": "Don't show this page next time I enter", |
||||
"feature1": { |
||||
"title": "Simple to use", |
||||
"content": "No downloads required. __app__ works directly within your browser. Simply share your conference URL with others to get started." |
||||
}, |
||||
"feature2": { |
||||
"title": "Low bandwidth", |
||||
"content": "Multi-party video conferences work with as little as 128Kbps. Screen-sharing and audio-only conferences are possible with far less." |
||||
}, |
||||
"feature3": { |
||||
"title": "Open source", |
||||
"content": "__app__ is licensed under MIT. You are free to download, use, modify, and share them as per these licenses." |
||||
}, |
||||
"feature4": { |
||||
"title": "Unlimited users", |
||||
"content": "There are no artificial restrictions on the number of users or conference participants. Server power and bandwidth are the only limiting factors." |
||||
}, |
||||
"feature5": { |
||||
"title": "Screen sharing", |
||||
"content": "It's easy to share your screen with others. __app__ is ideal for on-line presentations, lectures, and tech support sessions." |
||||
}, |
||||
"feature6": { |
||||
"title": "Secure rooms", |
||||
"content": "Need some privacy? __app__ conference rooms can be secured with a password in order to exclude unwanted guests and prevent interruptions." |
||||
}, |
||||
"feature7": { |
||||
"title": "Shared notes", |
||||
"content": "__app__ features Etherpad, a real-time collaborative text editor that's great for meeting minutes, writing articles, and more." |
||||
}, |
||||
"feature8": { |
||||
"title": "Usage statistics", |
||||
"content": "Learn about your users through easy integration with Piwik, Google Analytics, and other usage monitoring and statistics systems." |
||||
} |
||||
}, |
||||
"toolbar": { |
||||
"mute": "Mute / Unmute", |
||||
"videomute": "Start / stop camera", |
||||
"authenticate": "Authenticate", |
||||
"record": "Record", |
||||
"lock": "Lock / unlock room", |
||||
"invite": "Invite others", |
||||
"chat": "Open / close chat", |
||||
"prezi": "Share Prezi", |
||||
"etherpad": "Shared document", |
||||
"sharescreen": "Share screen", |
||||
"fullscreen": "Enter / Exit Full Screen", |
||||
"sip": "Call SIP number", |
||||
"Settings": "Settings", |
||||
"hangup": "Hang Up" |
||||
}, |
||||
"bottomtoolbar": { |
||||
"chat": "Open / close chat", |
||||
"filmstrip": "Open / close contact list", |
||||
"contactlist": "Show / hide film strip" |
||||
}, |
||||
"chat":{ |
||||
"nickname": { |
||||
"title": "Enter a nickname in the box below", |
||||
"popover": "Choose a nickname" |
||||
}, |
||||
"messagebox": "Enter text..." |
||||
}, |
||||
"settings": |
||||
{ |
||||
"title": "SETTINGS", |
||||
"update": "Update", |
||||
"name": "Name" |
||||
}, |
||||
"videothumbnail": |
||||
{ |
||||
"editnickname": "Click to edit your<br/>display name", |
||||
"moderator": "The owner of<br/>this conference", |
||||
"videomute": "Participant has<br/>stopped the camera.", |
||||
"mute": "Participant is muted", |
||||
"kick": "Kick out", |
||||
"muted": "Muted", |
||||
"domute": "Mute" |
||||
|
||||
}, |
||||
"connectionindicator": |
||||
{ |
||||
"bitrate": "Bitrate:", |
||||
"packetloss": "Packet loss: ", |
||||
"resolution": "Resolution:", |
||||
"less": "Show less", |
||||
"more": "Show more", |
||||
"address": "Address:", |
||||
"remoteports": "Remote ports:", |
||||
"localports": "Local ports:", |
||||
"remoteport": "Remote port:", |
||||
"localport": "Local port:", |
||||
"localaddress": "Local address: ", |
||||
"localaddresses": "Local addresses: ", |
||||
"remoteaddress": "Remote address: ", |
||||
"remoteaddresses": "Remote addresses: ", |
||||
"transport": "Transport: ", |
||||
"bandwidth": "Estimated bandwidth:", |
||||
"na": "Come back here for connection information once the conference starts" |
||||
}, |
||||
"notify": { |
||||
"disconnected": "disconnected", |
||||
"moderator": "Moderator rights granted !", |
||||
"connected": "connected" |
||||
|
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,110 @@ |
||||
var i18n = require("i18next-client"); |
||||
var languages = require("../../service/translation/languages"); |
||||
var DEFAULT_LANG = languages.EN; |
||||
var initialized = false; |
||||
var waitingForInit = []; |
||||
|
||||
i18n.addPostProcessor("resolveAppName", function(value, key, options) { |
||||
return value.replace("__app__", interfaceConfig.APP_NAME); |
||||
}); |
||||
|
||||
|
||||
|
||||
var defaultOptions = { |
||||
detectLngQS: "lang", |
||||
useCookie: false, |
||||
fallbackLng: DEFAULT_LANG, |
||||
load: "unspecific", |
||||
resGetPath: 'lang/__ns__-__lng__.json', |
||||
ns: { |
||||
namespaces: ['main', 'languages'], |
||||
defaultNs: 'main' |
||||
}, |
||||
lngWhitelist : languages.getLanguages(), |
||||
fallbackOnNull: true, |
||||
useDataAttrOptions: true, |
||||
app: interfaceConfig.APP_NAME, |
||||
getAsync: true, |
||||
customLoad: function(lng, ns, options, done) { |
||||
var resPath = "lang/__ns__-__lng__.json"; |
||||
if(lng === languages.EN) |
||||
resPath = "lang/__ns__.json"; |
||||
var url = i18n.functions.applyReplacement(resPath, { lng: lng, ns: ns }); |
||||
initialized = false; |
||||
i18n.functions.ajax({ |
||||
url: url, |
||||
success: function(data, status, xhr) { |
||||
i18n.functions.log('loaded: ' + url); |
||||
done(null, data); |
||||
}, |
||||
error : function(xhr, status, error) { |
||||
if ((status && status == 200) || |
||||
(xhr && xhr.status && xhr.status == 200)) { |
||||
// file loaded but invalid json, stop waste time !
|
||||
i18n.functions.error('There is a typo in: ' + url); |
||||
} else if ((status && status == 404) || |
||||
(xhr && xhr.status && xhr.status == 404)) { |
||||
i18n.functions.log('Does not exist: ' + url); |
||||
} else { |
||||
var theStatus = status ? status : |
||||
((xhr && xhr.status) ? xhr.status : null); |
||||
i18n.functions.log(theStatus + ' when loading ' + url); |
||||
} |
||||
|
||||
done(error, {}); |
||||
}, |
||||
dataType: "json", |
||||
async : options.getAsync |
||||
}); |
||||
} |
||||
// options for caching
|
||||
// useLocalStorage: true,
|
||||
// localStorageExpirationTime: 86400000 // in ms, default 1 week
|
||||
}; |
||||
|
||||
function initCompleted(t) |
||||
{ |
||||
initialized = true; |
||||
$("[data-i18n]").i18n(); |
||||
for(var i = 0; i < waitingForInit.length; i++) |
||||
{ |
||||
var obj = waitingForInit[i]; |
||||
obj.callback(i18n.t(obj.key)); |
||||
} |
||||
waitingForInit = []; |
||||
} |
||||
|
||||
module.exports = { |
||||
init: function (lang) { |
||||
initialized = false; |
||||
var options = defaultOptions; |
||||
if(lang) |
||||
options.lng = lang; |
||||
i18n.init(options, initCompleted); |
||||
}, |
||||
translateString: function (key, cb) { |
||||
if(!cb) |
||||
return i18n.t(key); |
||||
|
||||
if(initialized) |
||||
{ |
||||
cb(i18n.t(key)); |
||||
} |
||||
else |
||||
{ |
||||
waitingForInit.push({"callback": cb, "key": key}); |
||||
} |
||||
}, |
||||
setLanguage: function (lang) { |
||||
initialized = false; |
||||
if(!lang) |
||||
lang = DEFAULT_LANG; |
||||
i18n.setLng(lang, defaultOptions, initCompleted); |
||||
}, |
||||
getCurrentLanguage: function () { |
||||
return i18n.lng(); |
||||
}, |
||||
translateElement: function (selector) { |
||||
selector.i18n(); |
||||
} |
||||
}; |
@ -0,0 +1,12 @@ |
||||
module.exports = { |
||||
getLanguages : function () { |
||||
var languages = []; |
||||
for(var lang in this) |
||||
{ |
||||
if(typeof this[lang] === "string") |
||||
languages.push(this[lang]); |
||||
} |
||||
return languages; |
||||
}, |
||||
EN: "en" |
||||
} |
Loading…
Reference in new issue