Changeset 7cc38e0 in github
- Timestamp:
- Oct 31, 2005 6:41:00 PM (8 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 9db57c5
- Parents:
- 6677378
- Files:
-
- 6 added
- 12 edited
-
CHANGELOG (modified) (2 diffs)
-
INSTALL (modified) (2 diffs)
-
config/db.inc.php.dist (modified) (1 diff)
-
config/main.inc.php.dist (modified) (2 diffs)
-
index.php (modified) (2 diffs)
-
program/include/main.inc (modified) (3 diffs)
-
program/include/rcube_shared.inc (modified) (5 diffs)
-
program/localization/fi/labels.inc (added)
-
program/localization/fi/messages.inc (added)
-
program/localization/index.inc (modified) (1 diff)
-
program/localization/lv/labels.inc (modified) (4 diffs)
-
program/localization/lv/messages.inc (modified) (2 diffs)
-
program/localization/ro/labels.inc (added)
-
program/localization/ro/messages.inc (added)
-
program/localization/tw/labels.inc (added)
-
program/localization/tw/messages.inc (added)
-
program/steps/mail/func.inc (modified) (1 diff)
-
program/steps/settings/save_prefs.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rb076a46 r7cc38e0 63 63 2005/10/22 64 64 ---------- 65 - Added Finnish, Romanian and Chinese translation 65 66 - Get IMAP server capabilities in array 66 67 - Check for NAMESPACE capability before sending command … … 68 69 - Added sorting patch for message list 69 70 - Make default sort col/order configurable 70 - -
INSTALL
r42b1135 r7cc38e0 4 4 5 5 1. Decompress and put this folder somewhere inside your document root 6 2. Make s hure that the following directories are writable by the webserver6 2. Make sure that the following directories are writable by the webserver 7 7 - /temp 8 8 - /logs … … 36 36 ============= 37 37 38 Change the files in config/* according your environment and youneeds.38 Change the files in config/* according your to environment and your needs. 39 39 Details about the config paramaters can be found in the config files. -
config/db.inc.php.dist
r7902df4 r7cc38e0 23 23 24 24 // PEAR database DSN for read only operations (if empty write database will be used) 25 // use rful for database replication25 // useful for database replication 26 26 $rcmail_config['db_dsnr'] = ''; 27 27 -
config/main.inc.php.dist
rb076a46 r7cc38e0 24 24 25 25 // automatically create a new RoundCube user when log-in the first time. 26 // a new user will be created once the IMAP login succeed ed.26 // a new user will be created once the IMAP login succeeds. 27 27 // set to false if only registered users can use this service 28 28 $rcmail_config['auto_create_user'] = TRUE; … … 75 75 $rcmail_config['ip_check'] = TRUE; 76 76 77 // not s hure what this was good for :-)77 // not sure what this was good for :-) 78 78 $rcmail_config['locale_string'] = 'en'; 79 79 -
index.php
r4518342 r7cc38e0 43 43 44 44 // define global vars 45 $INSTALL_PATH = './';45 $INSTALL_PATH = dirname($_SERVER['SCRIPT_FILENAME']); 46 46 $OUTPUT_TYPE = 'html'; 47 47 $JS_OBJECT_NAME = 'rcmail'; 48 $CURRENT_PATH = dirname($_SERVER['SCRIPT_FILENAME']); 49 50 if ($CURRENT_PATH!='') 51 $CURRENT_PATH.='/'; 48 49 if (empty($INSTALL_PATH)) 50 $INSTALL_PATH = './'; 51 else 52 $INSTALL_PATH .= '/'; 52 53 53 // set environment first54 54 // RC include folders MUST be included FIRST to avoid other 55 55 // possible not compatible libraries (i.e PEAR) to be included 56 56 // instead the ones provided by RC 57 ini_set('include_path', $INSTALL_PATH.PATH_SEPARATOR.$ CURRENT_PATH.'program'.PATH_SEPARATOR.$CURRENT_PATH.'program/lib'.PATH_SEPARATOR.ini_get('include_path'));57 ini_set('include_path', $INSTALL_PATH.PATH_SEPARATOR.$INSTALL_PATH.'program'.PATH_SEPARATOR.$INSTALL_PATH.'program/lib'.PATH_SEPARATOR.ini_get('include_path')); 58 58 59 59 ini_set('session.name', 'sessid'); … … 144 144 145 145 // check session cookie and auth string 146 else if ($_action!='login' && $ _auth && $sess_auth)146 else if ($_action!='login' && $sess_auth && $_SESSION['user_id']) 147 147 { 148 148 if ($_auth !== $sess_auth || $_auth != rcmail_auth_hash($_SESSION['client_id'], $_SESSION['auth_time']) || -
program/include/main.inc
r6677378 r7cc38e0 227 227 function load_gui() 228 228 { 229 global $CONFIG, $OUTPUT, $COMM_PATH, $ IMAP, $JS_OBJECT_NAME;229 global $CONFIG, $OUTPUT, $COMM_PATH, $JS_OBJECT_NAME, $sess_user_lang; 230 230 231 231 // init output page … … 238 238 if (!empty($GLOBALS['_framed'])) 239 239 $javascript .= "$JS_OBJECT_NAME.set_env('framed', true);\n"; 240 240 241 241 $OUTPUT->add_script($javascript); 242 242 $OUTPUT->include_script('program/js/common.js'); 243 $OUTPUT->include_script('program/js/app.js'); 243 $OUTPUT->include_script('program/js/app.js'); 244 245 // set user-selected charset 246 if ($CONFIG['charset']) 247 $OUTPUT->set_charset($CONFIG['charset']); 248 else 249 rcmail_set_locale($sess_user_lang); 244 250 } 251 252 253 // set localization charset based on the given language 254 function rcmail_set_locale($lang) 255 { 256 global $OUTPUT, $INSTLL_PATH; 257 static $rcube_charsets; 258 259 if (!$rcube_charsets) 260 @include($INSTLL_PATH.'program/localization/index.inc'); 261 262 if (isset($rcube_charsets[$lang])) 263 $OUTPUT->set_charset($rcube_charsets[$lang]); 264 else 265 $OUTPUT->set_charset('ISO-8859-1'); 266 } 245 267 246 268 … … 448 470 if (!sizeof($sa_languages)) 449 471 { 450 @include _once($INSTLL_PATH.'program/localization/index.inc');472 @include($INSTLL_PATH.'program/localization/index.inc'); 451 473 452 474 if ($dh = @opendir($INSTLL_PATH.'program/localization')) -
program/include/rcube_shared.inc
rf619ded r7cc38e0 30 30 var $script_files = array(); 31 31 var $scripts = array(); 32 var $charset = 'ISO-8859-1'; 32 33 33 34 var $script_tag_file = "<script type=\"text/javascript\" src=\"%s%s\"></script>\n"; … … 83 84 } 84 85 86 function set_charset($charset) 87 { 88 $this->charset = $charset; 89 } 90 85 91 86 92 function write($templ='', $base_path='') … … 95 101 $__page_title = rep_specialchars_output($this->title, 'html', 'show', FALSE); 96 102 $__page_header = $__page_body = $__page_footer = ''; 103 104 105 // include meta tag with charset 106 if (!empty($this->charset)) 107 $__page_header = '<meta http-equiv="content-type" content="text/html; charset='.$this->charset.'" />'."\n";; 97 108 98 109 … … 1032 1043 function rcube_label($attrib) 1033 1044 { 1034 global $sess_user_lang, $INSTALL_PATH ;1045 global $sess_user_lang, $INSTALL_PATH, $OUTPUT; 1035 1046 static $sa_text_data, $s_language, $utf8_decode; 1036 1047 … … 1196 1207 if (!$html_encode_arr) 1197 1208 { 1198 $html_encode_arr = get_html_translation_table(HTML_ENTITIES); 1209 $html_encode_arr = get_html_translation_table(HTML_ENTITIES); // HTML_SPECIALCHARS 1199 1210 $html_encode_arr[chr(128)] = '€'; 1200 1211 unset($html_encode_arr['?']); -
program/localization/index.inc
rf3b6599 r7cc38e0 56 56 ); 57 57 58 59 $rcube_charsets = array( 60 'ru' => 'Windows-1251', 61 'lv' => 'ISO-8859-2', 62 'tw' => 'BIG5' 63 ); 64 58 65 ?> -
program/localization/lv/labels.inc
r69833e6 r7cc38e0 1 <?php1 <?php 2 2 3 3 /* … … 22 22 23 23 // login page 24 $labels['username'] = 'Lietot ājvārds';24 $labels['username'] = 'LietotÄjvÄrds'; 25 25 $labels['password'] = 'Parole'; 26 26 $labels['server'] = 'Serveris'; 27 $labels['login'] = 'Piesl ēgties';27 $labels['login'] = 'PieslÄgties'; 28 28 29 29 // taskbar 30 $labels['logout'] = 'Atsl ēgties';30 $labels['logout'] = 'AtslÄgties'; 31 31 $labels['mail'] = 'E-pasts'; 32 $labels['settings'] = 'Person īgie iestatījumi';33 $labels['addressbook'] = 'Adre šu grāmata';32 $labels['settings'] = 'PersonÄ«gie iestatÄ«jumi'; 33 $labels['addressbook'] = 'AdreÅ¡u grÄmata'; 34 34 35 35 // mailbox names 36 $labels['inbox'] = 'Ien ākošās';37 $labels['sent'] = 'Nos ūtītās';36 $labels['inbox'] = 'IenÄkoÅ¡Äs'; 37 $labels['sent'] = 'NosÅ«tÄ«tÄs'; 38 38 $labels['trash'] = 'Miskaste'; 39 39 $labels['drafts'] = 'Uzmetumi'; 40 $labels['junk'] = 'M ēstules';40 $labels['junk'] = 'MÄstules'; 41 41 42 42 // message listing … … 46 46 $labels['cc'] = 'Kopija'; 47 47 $labels['bcc'] = 'Bcc'; 48 $labels['replyto'] = 'Atbild ēt uz';48 $labels['replyto'] = 'AtbildÄt uz'; 49 49 $labels['date'] = 'Datums'; 50 $labels['size'] = 'Izm ērs';51 $labels['priority'] = 'Priorit āte';52 $labels['organization'] = 'Organiz ācija';50 $labels['size'] = 'IzmÄrs'; 51 $labels['priority'] = 'PrioritÄte'; 52 $labels['organization'] = 'OrganizÄcija'; 53 53 54 54 // aliases 55 $labels['reply-to'] = $labels['atbild ēt uz'];55 $labels['reply-to'] = $labels['atbildÄt uz']; 56 56 57 57 $labels['mailboxlist'] = 'Mapes'; 58 $labels['messagesfromto'] = 'V ēstules $from līdz $to no $count';59 $labels['messagenrof'] = '$nr. v ēstule no $count';58 $labels['messagesfromto'] = 'VÄstules $from lÄ«dz $to no $count'; 59 $labels['messagenrof'] = '$nr. vÄstule no $count'; 60 60 61 $labels['moveto'] = 'p ārvietot uz...';62 $labels['download'] = 'lejupiel ādēt';61 $labels['moveto'] = 'pÄrvietot uz...'; 62 $labels['download'] = 'lejupielÄdÄt'; 63 63 64 64 $labels['filename'] = 'Faila nosaukums'; 65 $labels['filesize'] = 'Faila izm ērs';65 $labels['filesize'] = 'Faila izmÄrs'; 66 66 67 $labels['preferhtml'] = 'Dot priek šroku HTML';68 $labels['htmlmessage'] = 'HTML v ēstule';67 $labels['preferhtml'] = 'Dot priekÅ¡roku HTML'; 68 $labels['htmlmessage'] = 'HTML vÄstule'; 69 69 $labels['prettydate'] = 'Skaists datums'; 70 70 71 $labels['addtoaddressbook'] = 'Pievienot adre šu grāmatai';71 $labels['addtoaddressbook'] = 'Pievienot adreÅ¡u grÄmatai'; 72 72 73 73 // weekdays short … … 81 81 82 82 // weekdays long 83 $labels['sunday'] = 'Sv ētdiena';83 $labels['sunday'] = 'SvÄtdiena'; 84 84 $labels['monday'] = 'Pirmdiena'; 85 85 $labels['tuesday'] = 'Otrdiena'; 86 $labels['wednesday'] = 'Tre šdiena';86 $labels['wednesday'] = 'TreÅ¡diena'; 87 87 $labels['thursday'] = 'Ceturtdiena'; 88 88 $labels['friday'] = 'Piektdiena'; 89 89 $labels['saturday'] = 'Sestdiena'; 90 90 91 $labels['today'] = ' Šodien';91 $labels['today'] = 'Å odien'; 92 92 93 93 // toolbar buttons 94 $labels['writenewmessage'] = 'Rakst īt jaunu vēstuli';95 $labels['replytomessage'] = 'Atbild ēt uz vēstuli';96 $labels['forwardmessage'] = 'P ārsūtīt vēstuli';97 $labels['deletemessage'] = 'P ārvietot vēstuli uz miskasti';98 $labels['printmessage'] = 'Izdruk āt šo vēstuli';99 $labels['previousmessages'] = 'Par ādīt iepriekšējo vēstuļu kopu';100 $labels['nextmessages'] = 'Par ādīt nākamo vēstuļu kopu';101 $labels['backtolist'] = 'Atpaka ļ uz vēstuļu sarakstu';94 $labels['writenewmessage'] = 'RakstÄ«t jaunu vÄstuli'; 95 $labels['replytomessage'] = 'AtbildÄt uz vÄstuli'; 96 $labels['forwardmessage'] = 'PÄrsÅ«tÄ«t vÄstuli'; 97 $labels['deletemessage'] = 'PÄrvietot vÄstuli uz miskasti'; 98 $labels['printmessage'] = 'IzdrukÄt Å¡o vÄstuli'; 99 $labels['previousmessages'] = 'ParÄdÄ«t iepriekÅ¡Äjo vÄstuÄŒu kopu'; 100 $labels['nextmessages'] = 'ParÄdÄ«t nÄkamo vÄstuÄŒu kopu'; 101 $labels['backtolist'] = 'AtpakaÄŒ uz vÄstuÄŒu sarakstu'; 102 102 103 $labels['select'] = 'Iez īmēt';103 $labels['select'] = 'IezÄ«mÄt'; 104 104 $labels['all'] = 'Visas'; 105 105 $labels['none'] = 'Nevienu'; 106 $labels['unread'] = 'Nelas ītās';106 $labels['unread'] = 'NelasÄ«tÄs'; 107 107 108 108 // message compose 109 $labels['compose'] = 'Rakst īt vēstuli';110 $labels['sendmessage'] = 'S ūtīt vēstuli';109 $labels['compose'] = 'RakstÄ«t vÄstuli'; 110 $labels['sendmessage'] = 'SÅ«tÄ«t vÄstuli'; 111 111 $labels['addattachment'] = 'Pievienot failu'; 112 112 113 113 $labels['attachments'] = 'Pielikumi'; 114 $labels['upload'] = 'Aug šupielādēt';115 $labels['close'] = 'Aizv ērt';114 $labels['upload'] = 'AugÅ¡upielÄdÄt'; 115 $labels['close'] = 'AizvÄrt'; 116 116 117 117 $labels['low'] = 'Zema'; 118 $labels['lowest'] = 'Zem ākā';119 $labels['normal'] = 'Norm āla';118 $labels['lowest'] = 'ZemÄkÄ'; 119 $labels['normal'] = 'NormÄla'; 120 120 $labels['high'] = 'Augsta'; 121 $labels['highest'] = 'Augst ākā';121 $labels['highest'] = 'AugstÄkÄ'; 122 122 123 $labels['showimages'] = 'R ādīt attēlus';123 $labels['showimages'] = 'RÄdÄ«t attÄlus'; 124 124 125 125 126 126 // address boook 127 $labels['name'] = 'Uzr ādītais vārds';128 $labels['firstname'] = 'V ārds';129 $labels['surname'] = 'Uzv ārds';127 $labels['name'] = 'UzrÄdÄ«tais vÄrds'; 128 $labels['firstname'] = 'VÄrds'; 129 $labels['surname'] = 'UzvÄrds'; 130 130 $labels['email'] = 'E-pasts'; 131 131 132 $labels['addcontact'] = 'Pievienot ierakstu adre šu grāmatā';133 $labels['editcontact'] = 'Redi ģēt adrešu grāmatas ierakstu';132 $labels['addcontact'] = 'Pievienot ierakstu adreÅ¡u grÄmatÄ'; 133 $labels['editcontact'] = 'RediÄ£Ät adreÅ¡u grÄmatas ierakstu'; 134 134 135 $labels['edit'] = 'Redi ģēt';135 $labels['edit'] = 'RediÄ£Ät'; 136 136 $labels['cancel'] = 'Atcelt'; 137 $labels['save'] = 'Saglab āt';138 $labels['delete'] = 'Dz ēst';137 $labels['save'] = 'SaglabÄt'; 138 $labels['delete'] = 'DzÄst'; 139 139 140 $labels['newcontact'] = 'Izveidot jaunu ierakstu adre šu grāmatā';141 $labels['deletecontact'] = 'Dz ēst iezīmētos ierakstus';142 $labels['composeto'] = 'Rakst īt vēstuli';143 $labels['contactsfromto'] = 'Ieraksti $from l īdz $to no $count';140 $labels['newcontact'] = 'Izveidot jaunu ierakstu adreÅ¡u grÄmatÄ'; 141 $labels['deletecontact'] = 'DzÄst iezÄ«mÄtos ierakstus'; 142 $labels['composeto'] = 'RakstÄ«t vÄstuli'; 143 $labels['contactsfromto'] = 'Ieraksti $from lÄ«dz $to no $count'; 144 144 145 145 146 146 // settings 147 $labels['settingsfor'] = 'Iestat ījumi';147 $labels['settingsfor'] = 'IestatÄ«jumi'; 148 148 149 149 $labels['preferences'] = 'Preferences'; 150 $labels['userpreferences'] = 'Lietot āja preferences';151 $labels['editpreferences'] = 'Redi ģēt lietotāja preferences';150 $labels['userpreferences'] = 'LietotÄja preferences'; 151 $labels['editpreferences'] = 'RediÄ£Ät lietotÄja preferences'; 152 152 153 $labels['identities'] = 'Identit ātes';154 $labels['manageidentities'] = 'Redi ģēt šī konta identitātes';155 $labels['newidentity'] = 'Jauna identit āte';153 $labels['identities'] = 'IdentitÄtes'; 154 $labels['manageidentities'] = 'RediÄ£Ät šī konta identitÄtes'; 155 $labels['newidentity'] = 'Jauna identitÄte'; 156 156 157 157 $labels['newitem'] = 'Jauns'; 158 $labels['edititem'] = 'Redi ģēt';158 $labels['edititem'] = 'RediÄ£Ät'; 159 159 160 $labels['setdefault'] = 'Uzlikt k ā noklusēto';160 $labels['setdefault'] = 'Uzlikt kÄ noklusÄto'; 161 161 $labels['language'] = 'Valoda'; 162 162 $labels['timezone'] = 'Laika zona'; 163 $labels['pagesize'] = 'Rindas lap ā';163 $labels['pagesize'] = 'Rindas lapÄ'; 164 164 165 165 166 166 $labels['folders'] = 'Mapes'; 167 167 $labels['foldername'] = 'Mapes nosaukums'; 168 $labels['subscribed'] = 'Abon ētās';168 $labels['subscribed'] = 'AbonÄtÄs'; 169 169 $labels['create'] = 'Izveidot'; 170 170 $labels['createfolder'] = 'Izveidot jaunu mapi'; 171 $labels['deletefolder'] = 'Dz ēst mapi';172 $labels['managefolders'] = 'Redi ģēt mapes';171 $labels['deletefolder'] = 'DzÄst mapi'; 172 $labels['managefolders'] = 'RediÄ£Ät mapes'; 173 173 174 174 -
program/localization/lv/messages.inc
r69833e6 r7cc38e0 1 <?php1 <?php 2 2 3 3 /* … … 21 21 $messages = array(); 22 22 23 $messages['loginfailed'] = 'Neizdev ās pieslēgties';23 $messages['loginfailed'] = 'NeizdevÄs pieslÄgties'; 24 24 25 $messages['cookiesdisabled'] = 'J ūsu pārlūkprogramma neatbalsta sīkdatnes (cookies)';25 $messages['cookiesdisabled'] = 'JÅ«su pÄrlÅ«kprogramma neatbalsta sÄ«kdatnes (cookies)'; 26 26 27 $messages['sessionerror'] = 'J ūsu sessija ir beigusies';27 $messages['sessionerror'] = 'JÅ«su sessija ir beigusies'; 28 28 29 $messages['imaperror'] = 'Neizdev ās pieslēgties IMAP serverim';29 $messages['imaperror'] = 'NeizdevÄs pieslÄgties IMAP serverim'; 30 30 31 $messages['nomessagesfound'] = ' Šajā pastkastē nav vēstuļu';31 $messages['nomessagesfound'] = 'Å ajÄ pastkastÄ nav vÄstuÄŒu'; 32 32 33 $messages['loggedout'] = 'J ūs esat veiksmīgi atslēdzies';33 $messages['loggedout'] = 'JÅ«s esat veiksmÄ«gi atslÄdzies'; 34 34 35 $messages['mailboxempty'] = 'Pastkaste tuk ša';35 $messages['mailboxempty'] = 'Pastkaste tukÅ¡a'; 36 36 37 $messages['loadingdata'] = 'Tiek iel ādēti dati...';37 $messages['loadingdata'] = 'Tiek ielÄdÄti dati...'; 38 38 39 $messages['messagesent'] = 'V ēstule nosūtīta veiksmīgi';39 $messages['messagesent'] = 'VÄstule nosÅ«tÄ«ta veiksmÄ«gi'; 40 40 41 $messages['successfullysaved'] = 'Saglab āts veiksmīgi';41 $messages['successfullysaved'] = 'SaglabÄts veiksmÄ«gi'; 42 42 43 $messages['addedsuccessfully'] = 'Ieraksts veiksm īgi pievienots adrešu grāmatai';43 $messages['addedsuccessfully'] = 'Ieraksts veiksmÄ«gi pievienots adreÅ¡u grÄmatai'; 44 44 45 $messages['contactexists'] = 'Ieraksts ar šādu e-pasta adresi jau eksistē';45 $messages['contactexists'] = 'Ieraksts ar Å¡Ädu e-pasta adresi jau eksistÄ'; 46 46 47 $messages['blockedimages'] = 'Dro šības nolūkos attēli, kas tiek ielādēti no cita servera, šajā vēstulē ir bloķēti';47 $messages['blockedimages'] = 'Drošības nolÅ«kos attÄli, kas tiek ielÄdÄti no cita servera, Å¡ajÄ vÄstulÄ ir bloÄ·Äti'; 48 48 49 $messages['encryptedmessage'] = ' Šī ir šifrēta vēstule un diemžēl nevar tikt parādīta';49 $messages['encryptedmessage'] = 'Å Ä« ir Å¡ifrÄta vÄstule un diemÅŸÄl nevar tikt parÄdÄ«ta'; 50 50 51 51 $messages['nocontactsfound'] = 'Ieraksti netika atrasti'; 52 52 53 $messages['sendingfailed'] = 'V ēstule netika nosūtīta';53 $messages['sendingfailed'] = 'VÄstule netika nosÅ«tÄ«ta'; 54 54 55 $messages['errorsaving'] = 'Saglab ājot notikusi kļūme';55 $messages['errorsaving'] = 'SaglabÄjot notikusi kČūme'; 56 56 57 57 -
program/steps/mail/func.inc
rb076a46 r7cc38e0 529 529 '/<script.+<\/script>/Umis'); 530 530 531 $remote_replaces = array(' \\1=\\2#\\4',531 $remote_replaces = array('', // '\\1=\\2#\\4', 532 532 // '\\1=\\2#\\4', 533 533 '', 534 ' \\1#\\3',534 '', // '\\1#\\3', 535 535 'none', 536 536 'none', -
program/steps/settings/save_prefs.inc
rd7cb774 r7cc38e0 33 33 34 34 if (isset($_POST['_language'])) 35 { 35 36 $sess_user_lang = $_SESSION['user_lang'] = $_POST['_language']; 37 rcmail_set_locale($sess_user_lang); 38 } 36 39 37 40
Note: See TracChangeset
for help on using the changeset viewer.
