adding language support for auto arrange word

This commit is contained in:
vineethvk11 2024-03-18 09:29:23 +05:30
parent a2fedfcd97
commit 8ef6167915
2 changed files with 11 additions and 13 deletions

View File

@ -625,7 +625,7 @@ async function UIDesktop(options){
html: i18n('sort_by'),
items: [
{
html: `Auto Arrange`,
html: i18n('auto_arrange'),
icon: is_auto_arrange_enabled ? '✓' : '',
onClick: async function(){
is_auto_arrange_enabled = !is_auto_arrange_enabled;
@ -644,9 +644,8 @@ async function UIDesktop(options){
// -------------------------------------------
'-',
{
html: `Name`,
disabled: !is_auto_arrange_enabled,
html: i18n('name'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_by') === 'name' ? '✓' : '',
onClick: async function(){
sort_items(el_desktop, 'name', $(el_desktop).attr('data-sort_order'));
@ -654,9 +653,8 @@ async function UIDesktop(options){
}
},
{
html: `Date modified`,
disabled: !is_auto_arrange_enabled,
html: i18n('date_modified'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_by') === 'modified' ? '✓' : '',
onClick: async function(){
sort_items(el_desktop, 'modified', $(el_desktop).attr('data-sort_order'));
@ -664,9 +662,8 @@ async function UIDesktop(options){
}
},
{
html: `Type`,
disabled: !is_auto_arrange_enabled,
html: i18n('type'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_by') === 'type' ? '✓' : '',
onClick: async function(){
sort_items(el_desktop, 'type', $(el_desktop).attr('data-sort_order'));
@ -674,9 +671,8 @@ async function UIDesktop(options){
}
},
{
html: `Size`,
disabled: !is_auto_arrange_enabled,
html: i18n('size'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_by') === 'size' ? '✓' : '',
onClick: async function(){
sort_items(el_desktop, 'size', $(el_desktop).attr('data-sort_order'));
@ -688,9 +684,8 @@ async function UIDesktop(options){
// -------------------------------------------
'-',
{
html: `Ascending`,
disabled: !is_auto_arrange_enabled,
html: i18n('ascending'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_order') === 'asc' ? '✓' : '',
onClick: async function(){
const sort_by = $(el_desktop).attr('data-sort_by')
@ -699,9 +694,8 @@ async function UIDesktop(options){
}
},
{
html: `Descending`,
disabled: !is_auto_arrange_enabled,
html: i18n('descending'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_order') === 'desc' ? '✓' : '',
onClick: async function(){
const sort_by = $(el_desktop).attr('data-sort_by')

View File

@ -188,6 +188,7 @@ window.translations = {
yes_release_it: 'Yes, Release It',
you_have_been_referred_to_puter_by_a_friend: "You have been referred to Puter by a friend!",
zip: "Zip",
auto_arrange: "Auto Arrange",
},
// farsi
fa: {
@ -330,6 +331,7 @@ window.translations = {
yes_release_it: 'بله، آن را آزاد کن',
you_have_been_referred_to_puter_by_a_friend: "شما توسط یک دوست به Puter معرفی شده اید!",
zip: "فشرده سازی",
auto_arrange: "تنظیم خودکار",
},
// korean
ko: {
@ -472,6 +474,7 @@ window.translations = {
yes_release_it: '예, 해제합니다',
you_have_been_referred_to_puter_by_a_friend: "친구가 Puter로 추천했습니다!",
zip: "압축",
auto_arrange: "자동 정렬",
},
zh: {
access_granted_to: "访问授权给",
@ -613,5 +616,6 @@ window.translations = {
yes_release_it: '是的,释放它',
you_have_been_referred_to_puter_by_a_friend: "您已经被朋友推荐到 Puter",
zip: "压缩",
auto_arrange: "自动排列"
},
}