Commit graph

21 commits

Author SHA1 Message Date
mariano.iglesias
d3af5f253b Adding comments to code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5147 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-21 19:38:39 +00:00
phpnut
9ace567e8e Adding test for Validate::ip().
Fixed Ticket #2298.
Fixed issue with I10n class not setting default language

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4689 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-27 02:59:22 +00:00
dho
c46c6de561 Fixing typo (ticket #2144)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4528 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-17 13:58:00 +00:00
phpnut
a8a91e35be Correcting all headers in the files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4407 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 10:39:45 +00:00
phpnut
69379095c8 Adding fix from Ticket #1808.
Correcting language name in I10n class.
Removed unused var from CookieComponent

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4220 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-28 03:41:33 +00:00
phpnut
43f2afa6eb Fixes for:
Ticket #1394 setFlash with layout fails because of missing params to View
Ticket #1480 Incorrect urls with Plugins
Ticket #1670 HtmlHelper::selectTag: problem when is_array($selected)
Ticket #1685 Router::url can cause incorrect links
Ticket #1774 Route::url() don't find the right route
Ticket #1776 Postgres - after each insert atempting to retrieve last inserted id from seq.
Ticket #1765 Dispatcher, route and plugins

Adding doc comments to EmailComponent
Removed ) in I10n::__l10nCatalog['lv'] 

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4199 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 10:51:08 +00:00
phpnut
3eac55449e Adding function to basics.php to allow specifying a catalog to use for translation.
This should be used when LC_MESSAGES does not contain the translation strings.
Added doc comments to I18n and I10n classes.
Refactored I18n class

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4188 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-25 04:42:47 +00:00
phpnut
3638dffb54 Correcting charset for Chinese (PRC)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4177 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-24 04:47:23 +00:00
phpnut
5e7db7d91a Adding check to I18n class for found language in the first pass of a translation method call. This speeds up the translations since the language detection in I10n class is not called on each string.
Added additional check for language in I10n::__setLanguage();

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4172 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 23:59:57 +00:00
phpnut
de3098855b Changing Session check in I18n class to use the same name as Configure::write().
Changed I10n class to attempt setting language based on DEFAULT_LANGUAGE if it is set and the auto detection of the HTTP_ACCEPT_LANGUAGE fails to find a match

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4171 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 23:35:59 +00:00
phpnut
2607043916 "Changing charset for Chinese language"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4160 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 15:49:00 +00:00
phpnut
359154fabf "Correcting charset for the Japanese language."
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4151 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 08:58:32 +00:00
phpnut
b4a93ea971 "Adding key for Spanish language es_mx"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4141 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 01:55:54 +00:00
phpnut
2ce49ac3ed "Forcing HTTP_ACCEPT_LANGUAGE to lower case string"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4140 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 01:53:16 +00:00
phpnut
a96e93ab3e Correcting error found when testing bake
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4137 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-23 00:50:49 +00:00
phpnut
9283b97f01 Setting charset with Configure::write();
Adding default charset values for all languages.
Those that I did not know where set to utf-8

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4127 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 21:15:40 +00:00
phpnut
5a128ed722 Adding charset var and __l10nCatalog key to I10n class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4126 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 21:05:42 +00:00
phpnut
d23de28349 Adding doc comments to translation functions in basics.php
Refactoring I18n class to use one locale directory for an application.
Translations will be located in app/locales/[LANGUAGE]/LC_MESSAGES/[CONTROLLER].mo or [CONTROLLER].po
If not found app/locales/[LANGUAGE]/LC_MESSAGES/default.mo or default.po
All core translations will be located in cake/locales/[LANGUAGE]/LC_MESSAGES/

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4122 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-22 20:04:15 +00:00
phpnut
90a78232ed Changed Configure::read() so it would return null if key is not set.
Refactored I18n and I10n classes.
Removing languages that are not found in browsers

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4117 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-21 22:05:42 +00:00
phpnut
78df4e3549 Cleaning up I10n and I18n classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4116 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-21 09:17:32 +00:00
phpnut
0801dce999 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3092 3807eeeb-6ff5-0310-8944-8be069107fe0 2006-06-14 19:06:14 +00:00