New language style for worldwide
This commit is contained in:
@@ -10,7 +10,7 @@ function mdCheck(){
|
||||
if(localStorage.getItem("post_" + acct_id)){
|
||||
$("#toot-post-btn").text(localStorage.getItem("post_" + acct_id)+"("+localStorage.getItem("domain_"+acct_id)+")");
|
||||
}else{
|
||||
$("#toot-post-btn").text(lang_toot[lang]+"("+localStorage.getItem("domain_"+acct_id)+")");
|
||||
$("#toot-post-btn").text(lang.lang_toot+"("+localStorage.getItem("domain_"+acct_id)+")");
|
||||
}
|
||||
if(!localStorage.getItem("bb_"+acct_id) && !localStorage.getItem("md_"+acct_id)){
|
||||
$(".markdown").addClass("hide");
|
||||
@@ -40,7 +40,7 @@ function mdCheck(){
|
||||
$("#trendtag").html("");
|
||||
}
|
||||
if(localStorage.getItem("mode_" + domain)=="misskey"){
|
||||
Materialize.toast(lang_bbmd_misskey[lang], 5000);
|
||||
Materialize.toast(lang.lang_bbmd_misskey, 5000);
|
||||
}
|
||||
if(idata[domain+"_letters"]){
|
||||
$("#textarea").attr("data-length", idata[domain+"_letters"])
|
||||
|
@@ -20,7 +20,7 @@ function emojiToggle() {
|
||||
$("#emoji").removeClass("hide")
|
||||
if (!localStorage.getItem("emoji_" + acct_id)) {
|
||||
var html =
|
||||
'<button class="btn waves-effect green" style="width:100%; padding:0; margin-top:0;" onclick="emojiGet(\'true\');">'+lang_emoji_get[lang]+'</button>';
|
||||
'<button class="btn waves-effect green" style="width:100%; padding:0; margin-top:0;" onclick="emojiGet(\'true\');">'+lang.lang_emoji_get+'</button>';
|
||||
$("#emoji-list").html(html);
|
||||
} else {
|
||||
emojiList('home');
|
||||
@@ -68,7 +68,7 @@ function emojiGet(parse) {
|
||||
|
||||
//リストの描画
|
||||
function emojiList(target) {
|
||||
$("#now-emoji").text(lang_emoji_custom[lang]);
|
||||
$("#now-emoji").text(lang.lang_emoji_custom);
|
||||
var acct_id = $("#post-acct-sel").val();
|
||||
var start = localStorage.getItem("emojiseek");
|
||||
if (target == "next") {
|
||||
|
@@ -43,7 +43,7 @@ function pimg(files) {
|
||||
var electron = require("electron");
|
||||
var ipc = electron.ipcRenderer;
|
||||
ipc.send('bmp-image', [files[i].path,i]);
|
||||
todo(lang_progress[lang]);
|
||||
todo(lang.lang_progress);
|
||||
|
||||
}else{
|
||||
handleFileUpload(files[i], obj,i);
|
||||
@@ -134,7 +134,7 @@ function media(b64, type, no) {
|
||||
var html = '<img src="' + json[previewer] + '" style="width:50px; max-height:100px;">';
|
||||
$('#preview').append(html);
|
||||
} else {
|
||||
$('#preview').append(lang_postimg_previewdis[lang]);
|
||||
$('#preview').append(lang.lang_postimg_previewdis);
|
||||
}
|
||||
if (!img) {
|
||||
var img = "no-act";
|
||||
@@ -152,8 +152,8 @@ function media(b64, type, no) {
|
||||
todc();
|
||||
$(".toot-btn-group").prop("disabled", false);
|
||||
$('select').material_select();
|
||||
$("#mec").text(lang_there[lang]);
|
||||
Materialize.toast(lang_postimg_aftupload[lang], 1000);
|
||||
$("#mec").text(lang.lang_there);
|
||||
Materialize.toast(lang.lang_postimg_aftupload, 1000);
|
||||
$("#imgup").text("");
|
||||
$("#imgsel").show();
|
||||
localStorage.removeItem("image");
|
||||
|
@@ -32,7 +32,7 @@ function renoteqt(id, acct_id) {
|
||||
$("#post-acct-sel").val(acct_id);
|
||||
$("#post-acct-sel").prop("disabled", true);
|
||||
$('select').material_select();
|
||||
$("#textarea").attr("placeholder",lang_misskeyparse_qt[lang]);
|
||||
$("#textarea").attr("placeholder",lang.lang_misskeyparse_qt);
|
||||
$("#textarea").focus();
|
||||
}
|
||||
//Reply
|
||||
@@ -44,7 +44,7 @@ function misskeyreply(id, acct_id) {
|
||||
$("#post-acct-sel").val(acct_id);
|
||||
$("#post-acct-sel").prop("disabled", true);
|
||||
$('select').material_select();
|
||||
$("#textarea").attr("placeholder",lang_misskeyparse_qt[lang]);
|
||||
$("#textarea").attr("placeholder",lang.lang_misskeyparse_qt);
|
||||
$("#textarea").focus();
|
||||
}
|
||||
//Reaction
|
||||
|
@@ -20,7 +20,7 @@ function post(mode,postvis) {
|
||||
if(domain=="theboss.tech"){
|
||||
if(~str.indexOf("#")){
|
||||
if(str.indexOf("#theboss_tech")=="-1"){
|
||||
if(!confirm(lang_post_tagTL[lang])){
|
||||
if(!confirm(lang.lang_post_tagTL)){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -29,7 +29,7 @@ function post(mode,postvis) {
|
||||
if(domain=="dtp-mstdn.jp"){
|
||||
if(~str.indexOf("#")){
|
||||
if(str.indexOf("#dtp")=="-1"){
|
||||
if(!confirm(lang_post_tagTL[lang])){
|
||||
if(!confirm(lang.lang_post_tagTL)){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -52,9 +52,9 @@ function post(mode,postvis) {
|
||||
var plus=str.replace(/\n/g,"").slice(0,10)+"...";
|
||||
const options = {
|
||||
type: 'info',
|
||||
title: lang_post_cwtitle[lang],
|
||||
message: lang_post_cwtxt[lang]+plus,
|
||||
buttons: [lang_post_btn1[lang],lang_post_btn2[lang], lang_post_btn3[lang]]
|
||||
title: lang.lang_post_cwtitle,
|
||||
message: lang.lang_post_cwtxt+plus,
|
||||
buttons: [lang.lang_post_btn1,lang.lang_post_btn2, lang.lang_post_btn3]
|
||||
}
|
||||
dialog.showMessageBox(options, function(arg) {
|
||||
if(arg==1){
|
||||
@@ -108,7 +108,7 @@ function post(mode,postvis) {
|
||||
//ここに非公開・未収載タグについてwarn
|
||||
if(~str.indexOf("#")){
|
||||
if(vis == "local" || vis=="unlisted" || vis=="direct" || vis=="private"){
|
||||
if(!confirm(lang_post_tagVis[lang])){
|
||||
if(!confirm(lang.lang_post_tagVis)){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -233,7 +233,7 @@ function clear() {
|
||||
if(localStorage.getItem("stable")){
|
||||
$("#textarea").val(localStorage.getItem("stable"));
|
||||
}
|
||||
$("#textarea").attr("placeholder", lang_toot[lang]);
|
||||
$("#textarea").attr("placeholder", lang.lang_toot);
|
||||
$("#reply").val("");
|
||||
$("#media").val("");
|
||||
var cwt = localStorage.getItem("cw-text");
|
||||
@@ -252,13 +252,13 @@ function clear() {
|
||||
$("#cw").addClass("cw-avail");
|
||||
$("#cw-text").show();
|
||||
}
|
||||
$("#rec").text(lang_no[lang]);
|
||||
$("#mec").text(lang_nothing[lang]);
|
||||
$("#rec").text(lang.lang_no);
|
||||
$("#mec").text(lang.lang_nothing);
|
||||
loadVis();
|
||||
$("#nsfw").removeClass("yellow-text");
|
||||
$("#nsfw").html("visibility_off");
|
||||
$("#nsfw").removeClass("nsfw-avail");
|
||||
$("#nsc").text(lang_nothing[lang]);
|
||||
$("#nsc").text(lang.lang_nothing);
|
||||
$("#drag").css("background-color", "#e0e0e0");
|
||||
$("#preview").html("");
|
||||
$(".toot-btn-group").prop("disabled", false);
|
||||
|
@@ -43,7 +43,7 @@ function fav(id, acct_id, remote) {
|
||||
$(".fav_" + id).addClass("yellow-text");
|
||||
}
|
||||
}else{
|
||||
Materialize.toast(lang_status_favWarn[lang], 1000);
|
||||
Materialize.toast(lang.lang_status_favWarn, 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -90,7 +90,7 @@ function rt(id, acct_id, remote) {
|
||||
$(".rt_" + id).addClass("teal-text");
|
||||
}
|
||||
} else {
|
||||
Materialize.toast(lang_status_btWarn[lang], 1000);
|
||||
Materialize.toast(lang.lang_status_btWarn, 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -141,10 +141,10 @@ function follow(acct_id,remote) {
|
||||
console.log(json);
|
||||
if ($("#his-data").hasClass("following")) {
|
||||
$("#his-data").removeClass("following");
|
||||
$("#his-follow-btn").text(lang_status_follow[lang]);
|
||||
$("#his-follow-btn").text(lang.lang_status_follow);
|
||||
} else {
|
||||
$("#his-data").addClass("following");
|
||||
$("#his-follow-btn").text(lang_status_unfollow[lang]);
|
||||
$("#his-follow-btn").text(lang.lang_status_unfollow);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -174,10 +174,10 @@ function block(acct_id) {
|
||||
if (httpreq.readyState == 4) {
|
||||
if ($("#his-data").hasClass("blocking")) {
|
||||
$("#his-data").removeClass("blocking");
|
||||
$("#his-block-btn").text(lang_status_block[lang]);
|
||||
$("#his-block-btn").text(lang.lang_status_block);
|
||||
} else {
|
||||
$("#his-data").addClass("blocking");
|
||||
$("#his-block-btn").text(lang_status_unblock[lang]);
|
||||
$("#his-block-btn").text(lang.lang_status_unblock);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -216,10 +216,10 @@ function mute(acct_id) {
|
||||
if (httpreq.readyState == 4) {
|
||||
if ($("#his-data").hasClass("muting")) {
|
||||
$("#his-data").removeClass("muting");
|
||||
$("#his-mute-btn").text(lang_status_mute[lang]);
|
||||
$("#his-mute-btn").text(lang.lang_status_mute);
|
||||
} else {
|
||||
$("#his-data").addClass("muting");
|
||||
$("#his-mute-btn").text(lang_status_unmute[lang]);
|
||||
$("#his-mute-btn").text(lang.lang_status_unmute);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -252,7 +252,7 @@ function del(id, acct_id) {
|
||||
}
|
||||
//redraft
|
||||
function redraft(id, acct_id){
|
||||
if(confirm(lang_status_redraft[lang])){
|
||||
if(confirm(lang.lang_status_redraft)){
|
||||
show();
|
||||
del(id, acct_id);
|
||||
$("#post-acct-sel").prop("disabled", true);
|
||||
@@ -367,7 +367,7 @@ function empUser(){
|
||||
if(!obj){
|
||||
var obj=[];
|
||||
obj.push(id);
|
||||
Materialize.toast(id+lang_status_emphas[lang], 4000);
|
||||
Materialize.toast(id+lang.lang_status_emphas, 4000);
|
||||
}else{
|
||||
var can;
|
||||
Object.keys(obj).forEach(function(key) {
|
||||
@@ -377,7 +377,7 @@ function empUser(){
|
||||
}else{
|
||||
can=true;
|
||||
obj.splice(key, 1);
|
||||
Materialize.toast(id+lang_status_unemphas[lang], 4000);
|
||||
Materialize.toast(id+lang.lang_status_unemphas, 4000);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -408,10 +408,10 @@ function pinUser(){
|
||||
console.log(json);
|
||||
if ($("#his-end-btn").hasClass("endorsed")) {
|
||||
$("#his-end-btn").removeClass("endorsed")
|
||||
$("#his-end-btn").text(lang_status_endorse[lang])
|
||||
$("#his-end-btn").text(lang.lang_status_endorse)
|
||||
} else {
|
||||
$("#his-end-btn").addClass("endorsed")
|
||||
$("#his-end-btn").text(lang_status_unendorse[lang])
|
||||
$("#his-end-btn").text(lang.lang_status_unendorse)
|
||||
|
||||
}
|
||||
}
|
||||
@@ -420,7 +420,7 @@ function pinUser(){
|
||||
//URLコピー
|
||||
function tootUriCopy(url){
|
||||
execCopy(url);
|
||||
Materialize.toast(lang_details_url[lang], 1500);
|
||||
Materialize.toast(lang.lang_details_url, 1500);
|
||||
}
|
||||
|
||||
//他のアカウントで…
|
||||
|
@@ -18,7 +18,7 @@ input.addEventListener("focus", function() {
|
||||
if(semoji){
|
||||
var obj = JSON.parse(localStorage.getItem("emoji_" + acct_id));
|
||||
if(!obj){
|
||||
var ehtml=lang_suggest_nodata[lang];
|
||||
var ehtml=lang.lang_suggest_nodata;
|
||||
}else{
|
||||
var num = obj.length;
|
||||
var ehtml="";
|
||||
|
@@ -5,11 +5,11 @@ function re(id,at,acct_id,mode){
|
||||
$("#reply").val(id);
|
||||
var te=$("#textarea").val();
|
||||
$("#textarea").val("@"+at+" "+te);
|
||||
$("#rec").text(lang_yesno[lang]);
|
||||
$("#rec").text(lang.lang_yesno);
|
||||
$("#post-acct-sel").val(acct_id);
|
||||
$("#post-acct-sel").prop("disabled", true);
|
||||
$('select').material_select();
|
||||
$("#textarea").attr("placeholder",lang_usetxtbox_reply[lang]);
|
||||
$("#textarea").attr("placeholder",lang.lang_usetxtbox_reply);
|
||||
$("#textarea").focus();
|
||||
var profimg=localStorage.getItem("prof_"+acct_id);
|
||||
if(!profimg){
|
||||
|
Reference in New Issue
Block a user