mirror of
https://bitbucket.org/smil3y/kde-l10n.git
synced 2025-02-27 12:32:51 +00:00
38 lines
1.3 KiB
JavaScript
38 lines
1.3 KiB
JavaScript
![]() |
// #!/usr/bin/env kross
|
|||
|
# coding: utf-8
|
|||
|
|
|||
|
function fileSaved(path)
|
|||
|
{
|
|||
|
if (!Editor.isValid())
|
|||
|
return;
|
|||
|
|
|||
|
var filteringStarted=false;
|
|||
|
|
|||
|
for (entry=0;entry<Editor.entryCount();entry=entry+1)
|
|||
|
{
|
|||
|
if (Editor.entryPluralFormCount(entry)>1
|
|||
|
&& Editor.entryTarget(entry,0).length
|
|||
|
&& Editor.entryReady(entry)
|
|||
|
&& Editor.entryTarget(entry,0).indexOf("%1")==-1
|
|||
|
&& Editor.entrySource(entry,1).indexOf("%1")!=-1)
|
|||
|
{
|
|||
|
if (!filteringStarted)
|
|||
|
{
|
|||
|
filteringStarted=true;
|
|||
|
Editor.setEntriesFilteredOut(true);
|
|||
|
}
|
|||
|
Editor.setEntryFilteredOut(entry,false);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
if (!filteringStarted)
|
|||
|
return;
|
|||
|
|
|||
|
var krossforms = Kross.module("forms");
|
|||
|
krossforms.showMessageBox("Information", "Syntax check",
|
|||
|
"Синтаксичною перевіркою було виявлено можливі помилки.\n"+
|
|||
|
"На панелі перегляду модулів перекладу показано помилкові модулі.\n"+
|
|||
|
"Причина повідомлення: вкажіть %1 у першій формі множини явно для випадків 21, 31...");
|
|||
|
}
|
|||
|
|