Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(i18n) some before generate checks
- Loading branch information
Ferenc-Lorant Kiss
committed
Feb 7, 2009
1 parent
e854aca
commit f67866f
Showing
4 changed files
with
145 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,2 @@ | ||
Description: | ||
Generating list,edit,save and show partials for tasks from TrstSysTask table, based on 'exe_id' value. | ||
Convention: | ||
base_path /app/views/trst_sys (change with --controller_path) | ||
partial_path base_path/xxx/yyy/zzz/_*.html.erb with "./script/generate task_partial xxx_yyy_zzz" | ||
or partial_path base_path/xxx/yyy/_zzz.html.erb with "./script/generate task_partial xxx_yyy_zzz --single" | ||
Example: | ||
"./script/generate task_partial db_sys_menu" => | ||
/app/views/trst_sys/db/sys/menu/_list.html.erb, _edit.html.rb .... | ||
"./script/generate task_partial db_sys_menu --single" => | ||
/app/views/trst_sys/db/sys/_menu.html.erb | ||
"./script/generate task_partial db_sys_menu --single --controller_path "other_path"" => | ||
/app/views/other_path/db/sys/_menu.html.erb | ||
Avaible only in RO for moment ! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Descriere: | ||
Se generează parţialele (list,edit,save şi show) ptr. taskul din tabelul | ||
TrstSysTask, bazat pe valoarea câmpului 'exe_id'. | ||
Convenţie: | ||
calea_de_bază este /app/views/trst_sys controllerul implicit fiind "trst_sys" | ||
(se poate schimba cu --controller_path=valoare) la aceasta se adaugă valoarea | ||
câmpului prefix din tabel sau implicit "sys" în cazul în care câmpul este gol | ||
şi în final numele taskului. | ||
"/app/views/controller_path/prefix/final/_*.html.erb" sau | ||
"/app/views/controller_path/prefix/final.html.erb" în cazul --single | ||
Dacă la generare aţi dat numele tabelului din baza de date aceasta se va | ||
descompune după cum urmează: trst(se elimină)_prefix(dacă există)_final | ||
"/app/views/controller_path/prefix/final/_*.html.erb" | ||
Exemple: | ||
Nu este cazul. Înainte de a se genera parţialele veţi fi informat despre | ||
modul de aranjare a lor şi asupra posibilităţilor de modificare... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
ro: | ||
msg1: | ||
" | ||
\nInfo: | ||
\n Taskul există | ||
\n" | ||
msg2: | ||
" | ||
\nInfo: | ||
\n Clasa există tabelul există | ||
\n {{prefix}} | ||
\n" | ||
msg3: | ||
" | ||
\nInfo: | ||
\n Clasa există tabelul nu există | ||
\n | ||
\n | ||
\n" | ||
msg4: | ||
" | ||
\nInfo: | ||
\n Clasa nu este definită | ||
\n | ||
" | ||
msg5: | ||
" | ||
\nInfo: | ||
\n Taskul nu este definit | ||
\n | ||
" | ||
continue: "Continuaţi ('d','n')" | ||
en: | ||
msg1: | ||
" | ||
\nInfo: | ||
\n RO only | ||
\n" | ||
msg2: | ||
" | ||
\nInfo: | ||
\n RO only | ||
\n" | ||
msg3: | ||
" | ||
\nInfo: | ||
\n RO only | ||
\n" | ||
msg4: | ||
" | ||
\nInfo: | ||
\n RO only | ||
\n | ||
" | ||
msg5: | ||
" | ||
\nInfo: | ||
\n RO only | ||
\n | ||
" | ||
continue: "Continue ('y','n')" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters