$( function() {
function text_sz_to_ss(text) {
text = text.replace(/(کانونی دووەم|کانوونی دووەم)/gi, 'جانواری').replace(/(کانونی دووەم|کانوونی دووەم)/gi, 'جانواری');
text = text.replace(/شوبات/gi, 'فێبرواری').replace(/شوبات/gi, 'فێبرواری');
text = text.replace(/(ئادار|ئازار|مارت)/gi, 'مارچ').replace(/(ئادار|ئازار|مارت)/gi, 'مارچ');
text = text.replace(/نیسان/gi, 'ئاپریل').replace(/نیسان/gi, 'ئاپریل');
text = text.replace(/(ئایار|مایس)/gi, 'مەی').replace(/(ئایار|مایس)/gi, 'مەی');
text = text.replace(/حوزەیران/gi, 'جوون').replace(/حوزەیران/gi, 'جوون');
text = text.replace(/(تەممووز|تەمموز|تەموز|تەمووز)/gi, 'جولا').replace(/(تەممووز|تەمموز|تەموز|تەمووز)/gi, 'جولا');
text = text.replace(/ئاب/gi, 'ئۆگست').replace(/ئاب/gi, 'ئۆگست');
text = text.replace(/(ئەیلول|ئەیلوول)/gi, 'سێپتەمبەر').replace(/(ئەیلول|ئەیلوول)/gi, 'سێپتەمبەر');
text = text.replace(/تشرینی یەکەم/gi, 'ئۆکتۆبەر').replace(/تشرینی یەکەم/gi, 'ئۆکتۆبەر');
text = text.replace(/تشرینی دووەم/gi, 'نۆڤەمبەر').replace(/تشرینی دووەم/gi, 'نۆڤەمبەر');
text = text.replace(/(کانونی یەکەم|کانوونی یەکەم)/gi, 'دیسەمبەر').replace(/(کانونی یەکەم|کانوونی یەکەم)/gi, 'دیسەمبەر');
return text;
}
function node_sz_to_ss(node) {
if (node.nodeType === 3) {
var text = text_sz_to_ss(node.data);
if (text !== node.data) {
node.data = text;
}
} else if ( node.nodeType === 1
&& node.id !== 'editform'
&& node.className !== 'Zitat'
) {
for (var i = 0 ; i < node.childNodes.length ; i++) {
node_sz_to_ss(node.childNodes[i]);
}
}
}
document.title = text_sz_to_ss( document.title );
node_sz_to_ss( document.getElementById( 'content' ) );
});