Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/raw-rev/6f780722212a
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 07:46:12 2012
Кодировка: UTF-8

# HG changeset patch
# User Boris Nagaev
# Date 1330804897 -14400
# Node ID 6f780722212aeebd003bbbd2190e74b83bfcf54e
# Parent 08aab01af45bcf16e0de47bd4ed6e0e1e3677a7f
pair-cores/web: add translations

diff -r 08aab01af45b -r 6f780722212a pair_cores/web/Makefile
--- a/pair_cores/web/Makefile Sat Mar 03 23:06:17 2012 +0400
+++ b/pair_cores/web/Makefile Sun Mar 04 00:01:37 2012 +0400
@@ -6,8 +6,7 @@

.PHONY: environment
environment: wc
- mkdir -p approot
- cd approot && ln -fs ../wc/locales
+ cd approot && ln -fs ../wc/locales wc-locales
mkdir -p docroot/resources
cd docroot/resources && ln -fs /usr/share/Wt/resources/*.* .
cd docroot/resources && rm -fr Wc
diff -r 08aab01af45b -r 6f780722212a pair_cores/web/approot/locales/pair-cores-web.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pair_cores/web/approot/locales/pair-cores-web.xml Sun Mar 04 00:01:37 2012 +0400
@@ -0,0 +1,30 @@
+
+
+
+ Alignment file
+ Distance spreading
+ Markup file
+ Ignore cores, owned by one SS element
+ Min width of a block
+
+ Use blocks3d algorithm for high blocks
+

+
+ Bron-Kerbosh (blocks3d) timeout (-1 - unlimited)
+

+
+ Input alignment or input markup must be specified
+

+
+ Bron-Kerbosh (pair cores) timeout (-1 - unlimited)
+

+
+ Text file with high blocks
+ HTML file with high blocks
+ Homology file
+ Pair cores file
+ Pair cores HTML file
+ PyMol file
+
+

+
diff -r 08aab01af45b -r 6f780722212a pair_cores/web/approot/locales/pair-cores-web_ru.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pair_cores/web/approot/locales/pair-cores-web_ru.xml Sun Mar 04 00:01:37 2012 +0400
@@ -0,0 +1,37 @@
+
+ + plural="(n%10 == 0 || n%10 >= 5 || n/10%10 == 1) ? 2 : n%10==1 ? 0 : 1">
+
+ Выравнивание
+ Разметка
+ Минимальная ширина блока
+
+ Использовать алгоритм blocks3d для вертикальных блоков
+

+
+ Ограничение по времени на работу алгоритма Брона-Кербоша

+ для blocks3d (в секундах, -1 - без ограничения)
+

+
+ Допустимое расхождение расстояний между атомами
+

+
+ Входное выравнивание или входная разметка должны быть указаны
+

+
+ Ограничение по времени на работу алгоритма Брона-Кербоша

+ для парных ядер (в секундах, -1 - без ограничения)
+

+
+ Пропускать ядра, входящие в один элемент вторичной структуры
+

+
+ Вертикальные блоки (текст)
+ Вертикальные блоки (HTML)
+ Файл гомологии
+ Парные блоки (текст)
+ Парные блоки (HTML)
+ PyMol-скрипт
+
+

+
diff -r 08aab01af45b -r 6f780722212a pair_cores/web/pair-cores.cpp
--- a/pair_cores/web/pair-cores.cpp Sat Mar 03 23:06:17 2012 +0400
+++ b/pair_cores/web/pair-cores.cpp Sun Mar 04 00:01:37 2012 +0400
@@ -20,7 +20,7 @@
task->set_message("");
return true;
} else {
- task->set_message("Input alignment or input markup must be specified");
+ task->set_message(WString::tr("pair.in.Error_one_input"));
return false;
}
}
@@ -40,57 +40,61 @@
class PairCoresApp : public WApplication {
public:
PairCoresApp(const WEnvironment& env);
+
+ static Wt::WString tr(const char* key) {
+ return Wt::WString::tr(key);
+ }
};

PairCoresApp::PairCoresApp(const WEnvironment& env):
WApplication(env) {
enableUpdates(true);
messageResourceBundle().use(Wt::WApplication::appRoot() +
- "locales/wtclasses");
+ "wc-locales/wtclasses");
+ messageResourceBundle().use(Wt::WApplication::appRoot() +
+ "locales/pair-cores-web");
TableTask* task = new TableTask(root());
//
TextFileInput* input_markup = new TextFileInput("-m");
input_markup->set_required(false);
- task->add_input(input_markup, "Input pdb markup file");
+ task->add_input(input_markup, tr("pair.in.Markup"));
//
TextFileInput* input_aln = new TextFileInput("-i");
input_aln->set_required(false);
- task->add_input(input_aln, "Input alignment file");
+ task->add_input(input_aln, tr("pair.in.Alignment"));
//
WLineEdit* delta_edit = new WLineEdit("2.0");
delta_edit->setValidator(new WDoubleValidator(0, 10));
delta_edit->validator()->setMandatory(true);
LineEditInput* delta = new LineEditInput(delta_edit, "-d");
- task->add_input(delta, "Distance spreading");
+ task->add_input(delta, tr("pair.in.Delta"));
//
WLineEdit* width_edit = new WLineEdit("3");
width_edit->setValidator(new WIntValidator(3, 9999));
width_edit->validator()->setMandatory(true);
LineEditInput* width = new LineEditInput(width_edit, "-w");
- task->add_input(width, "Min width of a block");
+ task->add_input(width, tr("pair.in.Width"));
//
BoolInput* blocks3d = new BoolInput(new WCheckBox(), "--blocks3d");
- task->add_input(blocks3d, "Use blocks3d algorithm for high blocks");
+ task->add_input(blocks3d, tr("pair.in.Blocks3D"));
//
BoolInput* ioss = new BoolInput(new WCheckBox(), "-e");
ioss->set_value_if_true("True");
- task->add_input(ioss, "Ignore cores, owned by one SS element");
+ task->add_input(ioss, tr("pair.in.SS"));
//
WLineEdit* pair_timeout_edit = new WLineEdit("10");
pair_timeout_edit->setValidator(new WIntValidator(-1, 30 * 24 * 3600));
pair_timeout_edit->validator()->setMandatory(true);
LineEditInput* pair_timeout = new LineEditInput(pair_timeout_edit,
"--pair-timeout");
- task->add_input(pair_timeout,
- "Bron-Kerbosh (pair cores) timeout (-1 - unlimited)");
+ task->add_input(pair_timeout, tr("pair.in.Pair_timeout"));
//
WLineEdit* blocks3d_timeout_edit = new WLineEdit("-1");
blocks3d_timeout_edit->setValidator(new WIntValidator(-1, 30 * 24 * 3600));
blocks3d_timeout_edit->validator()->setMandatory(true);
LineEditInput* blocks3d_timeout = new LineEditInput(blocks3d_timeout_edit,
"--blocks3d-timeout");
- task->add_input(blocks3d_timeout,
- "Bron-Kerbosh (blocks3d) timeout (-1 - unlimited)");
+ task->add_input(blocks3d_timeout, tr("pair.in.Blocks3D_timeout"));
//
// outputs
//
@@ -100,33 +104,33 @@
ViewFileOutput* homology = new ViewFileOutput("-y");
homology->set_suggested_gen(boost::bind(name_gen2, "hom"));
homology->set_selectable(false);
- task->add_output(homology, "Output homology file");
+ task->add_output(homology, tr("pair.out.Homology"));
//
ViewFileOutput* pair_blocks = new ViewFileOutput("-b");
pair_blocks->set_suggested_gen(boost::bind(name_gen2, "blocks"));
- task->add_output(pair_blocks, "Output pair cores file");
+ task->add_output(pair_blocks, tr("pair.out.Pair_blocks"));
//
ViewFileOutput* pair_html = new ViewFileOutput("-H",
&FileOutput::unique_name,
"application/octet-stream",
"text/html");
pair_html->set_suggested_gen(boost::bind(name_gen2, "html"));
- task->add_output(pair_html, "Output pair cores HTML file");
+ task->add_output(pair_html, tr("pair.out.Pair_html"));
//
ViewFileOutput* pymol = new ViewFileOutput("-p");
pymol->set_suggested_gen(boost::bind(name_gen2, "pml"));
- task->add_output(pymol, "Output PyMol file");
+ task->add_output(pymol, tr("pair.out.Pymol"));
//
ViewFileOutput* high_blocks = new ViewFileOutput("--high-blocks");
high_blocks->set_suggested_gen(boost::bind(name_gen2, "blocks"));
- task->add_output(high_blocks, "Output text file with high blocks");
+ task->add_output(high_blocks, tr("pair.out.High_blocks"));
//
ViewFileOutput* blocks3d_html = new ViewFileOutput("--high-blocks-html",
&FileOutput::unique_name,
"application/octet-stream",
"text/html");
blocks3d_html->set_suggested_gen(boost::bind(name_gen2, "html"));
- task->add_output(blocks3d_html, "Output HTML file with high blocks");
+ task->add_output(blocks3d_html, tr("pair.out.High_html"));
//
task->set_runner(new ForkingRunner("pair-cores"));
task->set_queue(&queue);