Changeset 12785
- Timestamp:
- 10/12/07 19:58:11 (1 year ago)
- Files:
-
- trunk/midcom/midcom.admin.babel/config/manifest.inc (modified) (3 diffs)
- trunk/midcom/midcom.admin.babel/locale/default.en.txt (modified) (3 diffs)
- trunk/midcom/midcom.admin.babel/locale/default.pl.txt (modified) (4 diffs)
- trunk/midcom/midcom.admin.babel/main.php (deleted)
- trunk/midcom/midcom.admin.babel/midcom/interfaces.php (modified) (1 diff)
- trunk/midcom/midcom.admin.babel/style/midcom_admin_babel_select.php (modified) (4 diffs)
- trunk/midcom/midcom.admin.babel/style/midcom_admin_babel_status_footer.php (modified) (1 diff)
- trunk/midcom/midcom.admin.babel/style/midcom_admin_babel_status_header.php (modified) (1 diff)
- trunk/midcom/midcom.admin.babel/style/midcom_admin_babel_status_item.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.admin.babel/config/manifest.inc
r5819 r12785 1 2 1 'name' => 'midcom.admin.babel', 3 2 'description' => 'MidCOM localization utility', 4 3 'purecode' => true, 5 4 'version' => '0.1.2beta1', 6 'privileges' => 5 'privileges' => 7 6 array ( 8 7 ), 9 'class_definitions' => 8 'class_definitions' => 10 9 array ( 11 10 ), 12 'package.xml' => 11 'package.xml' => 13 12 array ( 14 13 'license' => 'GPL', 15 'maintainers' => 14 'maintainers' => 16 15 array ( 17 'solt' => 16 'solt' => 18 17 array ( 19 18 'name' => 'Marcin SoÅtysiak', … … 22 21 ), 23 22 ), 24 'dependencies' => 23 'dependencies' => 25 24 array ( 26 'midcom' => 25 'midcom' => 27 26 array ( 28 27 ), … … 30 29 ), 31 30 'state' => 'beta', 31 'customdata' => array 32 ( 33 'asgard_plugin' => array 34 ( 35 'class' => 'midcom_admin_babel_plugin', 36 'src' => 'file:/midcom/admin/babel/main.php', 37 'name' => 'Localization tool', 38 'config' => null, 39 ), 40 ), 41 trunk/midcom/midcom.admin.babel/locale/default.en.txt
r4512 r12785 10 10 ---STRING core component status 11 11 Status (core components) 12 ---STRINGEND 13 14 ---STRING core components 15 Core components 12 16 ---STRINGEND 13 17 … … 30 34 ---STRING other component status 31 35 Status (others) 36 ---STRINGEND 37 38 ---STRING other components 39 Other components 40 ---STRINGEND 41 42 ---STRING percentage 43 Percentage 32 44 ---STRINGEND 33 45 … … 53 65 ---STRINGEND 54 66 67 ---STRING translated strings 68 Translated strings 69 ---STRINGEND 70 55 71 ---STRING translation status for language %s 56 72 Translation status of %s 57 73 ---STRINGEND 58 74 75 ---STRING strings total 76 Strings total 77 ---STRINGEND 78 trunk/midcom/midcom.admin.babel/locale/default.pl.txt
r11197 r12785 6 6 ---STRING component 7 7 ModuÅ 8 ---STRINGEND 9 10 ---STRING core component status 11 Status (Core) 12 ---STRINGEND 13 14 ---STRING core components 15 ModuÅy systemowe 16 ---STRINGEND 17 18 ---STRING default 19 domyÅlne 8 20 ---STRINGEND 9 21 … … 20 32 ---STRINGEND 21 33 34 ---STRING other component status 35 Status (pozostaÅe) 36 ---STRINGEND 37 38 ---STRING other components 39 PozostaÅe moduÅy 40 ---STRINGEND 41 42 ---STRING percentage 43 % 44 ---STRINGEND 45 22 46 ---STRING perm-denied text 23 47 <p>Instalacja MidCOM'a nie pozwala serwerowi Apache na zapis do plików i folderów zawierajÄ … … 26 50 ---STRINGEND 27 51 52 ---STRING read information from midgard wiki on how to add languages 53 Informacje o tym, jak dodawaÄ nowe tÅumaczenia znajdziesz na <a href="http://www.midgard-project.org/midcom-permalink-ded2437586408cd03cd4582ba45b91f2">stronie dokumentacji Midgarda</a>. 54 ---STRINGEND 55 28 56 ---STRING select lang and component 29 57 Wybierz jÄzyk i moduÅ 58 ---STRINGEND 59 60 ---STRING select language to translate 61 Wybierz jÄzyk 30 62 ---STRINGEND 31 63 … … 34 66 ---STRINGEND 35 67 36 ---STRING core component status 37 Status (core) 38 ---STRINGEND 39 40 ---STRING default 41 domyÅlnie 42 ---STRINGEND 43 44 ---STRING other component status 45 Status (inne) 46 ---STRINGEND 47 48 ---STRING read information from midgard wiki on how to add languages 49 WiÄcej informacji o dodawaniu jÄzyków: <a href="http://www.midgard-project.org/midcom-permalink-ded2437586408cd03cd4582ba45b91f2">Midgard Wiki</a>. 50 ---STRINGEND 51 52 ---STRING select language to translate 53 Wybierz jÄzyk 68 ---STRING translated strings 69 PrzetÅumaczone 54 70 ---STRINGEND 55 71 56 72 ---STRING translation status for language %s 57 Stan tÅumaczenia 73 Stan tÅumaczenia %s 58 74 ---STRINGEND 59 75 76 ---STRING strings total 77 Wszystkie 78 ---STRINGEND 79 trunk/midcom/midcom.admin.babel/midcom/interfaces.php
r3999 r12785 3 3 * @package midcom.admin.settings 4 4 */ 5 class midcom_admin_babel_interface extends midcom_baseclasses_components_interface { 6 function midcom_admin_babel_interface () { 5 class midcom_admin_babel_interface extends midcom_baseclasses_components_interface 6 { 7 function midcom_admin_babel_interface () 8 { 7 9 parent::midcom_baseclasses_components_interface(); 8 10 9 11 $this->_component = 'midcom.admin.settings'; 10 12 $this->_purecode = true; 11 $this->_autoload_files = Array(12 'main.php',13 );14 $this->_autoload_libraries = Array(15 // 'midcom.helper.datamanager2',16 );17 18 13 } 19 14 trunk/midcom/midcom.admin.babel/style/midcom_admin_babel_select.php
r5977 r12785 2 2 //$data =& $_MIDCOM->get_custom_context_data('request_data'); 3 3 $prefix = $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX); 4 5 4 $languages = $data['l10n']->_language_db; 6 5 $curlang = $_MIDCOM->i18n->get_current_language(); 6 //print_r($data['l10n']); 7 7 ?> 8 8 <h1><?php echo $data['l10n']->get('select language to translate')?></h1> … … 11 11 <thead> 12 12 <tr> 13 <th><?php echo $data['l10n']->get('language'); ?></th> 14 <th></th> 13 <th><?php echo $data['l10n']->get('language','midcom.admin.babel'); ?></th> 15 14 <th><?php echo $data['l10n']->get('core component status'); ?></th> 16 15 <th><?php echo $data['l10n']->get('other component status'); ?></th> … … 24 23 25 24 // Calculate status 26 $state = midcom_admin_babel_ main::calculate_language_status($language);25 $state = midcom_admin_babel_plugin::calculate_language_status($language); 27 26 $percentage = round(100 / $state['strings_core']['total'] * $state['strings_core']['translated']); 28 27 $percentage_other = round(100 / $state['strings_other']['total'] * $state['strings_other']['translated']); … … 42 41 43 42 echo " <tr class=\"{$status}\">\n"; 44 echo " <td><a href=\"{$prefix}__ais/l10n/status/{$language}/\">{$language_name}</a></td>\n"; 45 echo " <td>{$language_info['localname']}</td>\n"; 43 echo " <td><a href=\"{$prefix}__mfa/asgard_midcom.admin.babel/status/{$language}/\">{$language_name}</a></td>\n"; 46 44 echo " <td title=\"{$state['strings_core']['translated']} / {$state['strings_core']['total']}\">{$percentage}%</td>\n"; 47 45 echo " <td title=\"{$state['strings_other']['translated']} / {$state['strings_other']['total']}\">{$percentage_other}%</td>\n"; trunk/midcom/midcom.admin.babel/style/midcom_admin_babel_status_footer.php
r5048 r12785 1 1 <?php 2 //$data =& $_MIDCOM->get_custom_context_data('request_data');3 2 $prefix = $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX); 4 3 $languages = $data['l10n']->_language_db; trunk/midcom/midcom.admin.babel/style/midcom_admin_babel_status_header.php
r5048 r12785 1 1 <?php 2 //$data =& $_MIDCOM->get_custom_context_data('request_data');3 2 $prefix = $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX); 4 3 $languages = $data['l10n']->_language_db; trunk/midcom/midcom.admin.babel/style/midcom_admin_babel_status_item.php
r5048 r12785 1 1 <?php 2 //$data =& $_MIDCOM->get_custom_context_data('request_data');3 2 $prefix = $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX); 4 3 $languages = $data['l10n']->_language_db; … … 27 26 28 27 echo "<tr class=\"{$status}\">\n"; 29 echo " <th class=\"component\"><a href=\"{$prefix}__ ais/l10n/edit/{$data['component']}/{$data['language']}/\">{$data['component']}</a></th>\n";28 echo " <th class=\"component\"><a href=\"{$prefix}__mfa/asgard_midcom.admin.babel/edit/{$data['component']}/{$data['language']}/\">{$data['component']}</a></th>\n"; 30 29 echo " <td>{$data['string_counts']['translated']}</td>\n"; 31 30 echo " <td>{$data['string_counts']['total']}</td>\n";
