CVS log for loncom/localize/lonlocal.pm

[BACK] Up to [LON-CAPA] / loncom / localize

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.69: download - view: text, markup, annotated - select for diffs
Thu Sep 8 01:41:14 2022 UTC (18 months, 2 weeks ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_4_msu, HEAD
Diff to previous 1.68: preferred, colored
Changes since revision 1.68: +20 -2 lines
- Bug 6971 Individual user preference for Time Zone.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Oct 29 23:04:39 2020 UTC (3 years, 4 months ago) by raeburn
Branches: MAIN
Diff to previous 1.67: preferred, colored
Changes since revision 1.67: +2 -2 lines
- Typo in documentation

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Feb 24 01:38:14 2019 UTC (5 years, 1 month ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_X, version_2_11_4_uiuc, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3
Diff to previous 1.66: preferred, colored
Changes since revision 1.66: +15 -11 lines
- Documentation changes.
  - search.cpan.org was retired in 2018
  - eliminate pod2man warnings about =item outside of an =over.
  - remove some trailing white space.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Jun 9 21:23:15 2015 UTC (8 years, 9 months ago) by damieng
Branches: MAIN
CVS tags: version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2
Diff to previous 1.65: preferred, colored
Changes since revision 1.65: +75 -2 lines
fixed bug 6782, and escaped most localized messages used in Javascript blocks to make sure bugs like that do not happen again

Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Dec 11 01:47:25 2014 UTC (9 years, 3 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_1
Diff to previous 1.64: preferred, colored
Changes since revision 1.64: +2 -2 lines
- Coding style: keys()

Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Oct 25 13:47:31 2012 UTC (11 years, 5 months ago) by bisitz
Branches: MAIN
CVS tags: version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0
Diff to previous 1.63: preferred, colored
Changes since revision 1.63: +4 -4 lines
Update Documentation: Don't loose the idea how to spell loser ;-)

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Aug 3 18:25:16 2011 UTC (12 years, 7 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_10_X, version_2_10_1, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, BZ4492-merge, BZ4492-feature_horizontal_radioresponse
Diff to previous 1.62: preferred, colored
Changes since revision 1.62: +4 -3 lines
- No longer request domain config for domain: "public".
  Suppress "get_dom failed - no homeserver and/or domain" logspam in lonnet.log.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Mar 28 21:10:41 2011 UTC (13 years ago) by raeburn
Branches: MAIN
CVS tags: version_2_10_0
Diff to previous 1.61: preferred, colored
Changes since revision 1.61: +46 -3 lines
- New arg for: &get_language_handle() - can supply the language code for
  the language to use.
- New routine: choose_language() - used when a script is run from command
  line, and user is prompted to choose a language (by entering two-letter
  language code).

Revision 1.60.4.3: download - view: text, markup, annotated - select for diffs
Mon Dec 6 17:52:20 2010 UTC (13 years, 3 months ago) by raeburn
Branches: GCI_3
Diff to previous 1.60.4.2: preferred, colored to branchpoint 1.60: preferred, colored next main 1.61: preferred, colored
Changes since revision 1.60.4.2: +4 -4 lines
- Customization for GCI_3.
  - language codes are three characters or less.

Revision 1.60.4.2: download - view: text, markup, annotated - select for diffs
Mon Dec 6 00:35:19 2010 UTC (13 years, 3 months ago) by raeburn
Branches: GCI_3
Diff to previous 1.60.4.1: preferred, colored to branchpoint 1.60: preferred, colored
Changes since revision 1.60.4.1: +5 -5 lines
- Customization for GCI_3.
  - Suport for multiple Concept Inventories.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Jul 7 16:30:48 2010 UTC (13 years, 8 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_1, version_2_10_0_RC2, version_2_10_0_RC1
Diff to previous 1.60: preferred, colored
Changes since revision 1.60: +7 -8 lines
- Browser detection needs to set browser.unicode for IE if charset for page is UTF-8
  and there is a possibility TTH will be used.

Revision 1.50.2.3: download - view: text, markup, annotated - select for diffs
Fri Feb 12 14:20:41 2010 UTC (14 years, 1 month ago) by raeburn
Branches: version_2_8_X
CVS tags: version_2_8_2
Diff to previous 1.50.2.2: preferred, colored next main 1.51: preferred, colored
Changes since revision 1.50.2.2: +10 -1 lines
- Backport 1.59 (part).

Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 7 04:05:18 2009 UTC (14 years, 3 months ago) by raeburn
Branches: GCI_3
Diff to previous 1.60: preferred, colored
Changes since revision 1.60: +12 -2 lines
- Customization for GCI_3 (same change as 1.60.2.1 for GCI_2).
    - gci and gct "languages" provide custom phrases for gci and gcitest domains respectively.

Revision 1.60.2.1: download - view: text, markup, annotated - select for diffs
Fri Oct 2 16:59:29 2009 UTC (14 years, 5 months ago) by raeburn
Branches: GCI_2
Diff to previous 1.60: preferred, colored next main 1.61: preferred, colored
Changes since revision 1.60: +12 -2 lines
- Customization for GCI.
- gci and gct "languages" provide custom phrases for gci and gcitest domains respectively.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Oct 1 20:22:33 2009 UTC (14 years, 5 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_9_99_0, version_2_9_0, version_2_8_99_1, version_2_8_99_0, bz6209-base, bz6209, PRINT_INCOMPLETE_base, PRINT_INCOMPLETE
Branch point for: GCI_3, GCI_2
Diff to previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
- Better choice of default domain for multi-domain servers.

Revision 1.50.4.2: download - view: text, markup, annotated - select for diffs
Mon Sep 14 22:34:41 2009 UTC (14 years, 6 months ago) by raeburn
Branches: GCI_1
Diff to previous 1.50.4.1: preferred, colored next main 1.51: preferred, colored
Changes since revision 1.50.4.1: +2 -1 lines
- Customization for GCI_1.

Revision 1.50.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 14 22:32:09 2009 UTC (14 years, 6 months ago) by raeburn
Branches: GCI_1
Diff to previous 1.50: preferred, colored
Changes since revision 1.50: +72 -13 lines
- lonlocal.pm for GCI_1 updated to 2.8.X
- Backport 1.52, 1.53.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed May 6 19:25:49 2009 UTC (14 years, 10 months ago) by droeschl
Branches: MAIN
CVS tags: bz5969, bz2851, BZ5971-printing-apage, BZ5434-fox
Diff to previous 1.58: preferred, colored
Changes since revision 1.58: +11 -66 lines
- reverted changes made in lonlocal.pm 1.58 and lonwhatsnew.pm 1.92
- the root cause for slow performance in lonwhatsnew while looking up received mails
  was found in DateTime::TimeZone's methods for looking up the 'local' timezone:
  [SOURCE: http://search.cpan.org/~drolsky/DateTime-TimeZone-0.90/lib/DateTime/TimeZone/Local/Unix.pm]
  "This class tries the following methods of determining the local time zone:

    * $ENV{TZ}
      It checks $ENV{TZ} for a valid time zone name.

    * /etc/localtime
      If this file is a symlink to an Olson database time zone file (usually in /usr/share/zoneinfo) then
      it uses the target file's path name to determine the time zone name. For example, if the path is
      /usr/share/zoneinfo/America/Chicago, the time zone is "America/Chicago".

      Some systems just copy the relevant file to /etc/localtime instead of making a symlink. In this case,
      we look in /usr/share/zoneinfo for a file that has the same size and content as /etc/localtime to
      determine the local time zone.[...]"

  On our CentOS server /etc/localtime happens to be a copy and this causes TimeZone to do an expensive
  search through the files in /usr/share/zoneinfo (everytime locallocaltime needs the 'local' timezone).
  To prevent TimeZone from doing this search we store the timezone found after the first run in $ENV{TZ}.
  Future calls of locallocaltime will be significantly improved in performance.
  This affects every module that calls locallocaltime (not only lonwhatsnew.pm).

Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon May 4 21:44:00 2009 UTC (14 years, 10 months ago) by lueken
Branches: MAIN
Diff to previous 1.57: preferred, colored
Changes since revision 1.57: +69 -4 lines
Locallocaltime-Function SpeedUp Hack

Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Apr 16 15:51:42 2009 UTC (14 years, 11 months ago) by www
Branches: MAIN
Diff to previous 1.56: preferred, colored
Changes since revision 1.56: +12 -19 lines
Another attempt at an &mt-cache

Revision 1.56: download - view: text, markup, annotated - select for diffs
Fri Mar 20 18:26:34 2009 UTC (15 years ago) by bisitz
Branches: MAIN
Diff to previous 1.55: preferred, colored
Changes since revision 1.55: +8 -5 lines
Character encoding UTF-8 needed for the whole LON-CAPA system
Revoke changes rev. 1.33 and rev. 1.34
(Set browser to ISO-8859-1 encoding, if client OS is MS Windows and browser type is Internet Explorer)

Current tests can _not_ confirm a difference
(tested with LON-CAPA CVS head (2009-03-20 19:00 GMT+01),
Windows 2000 SP4 and MSIE 6.0 / Windows XP Prof. SP3 and MSIE 7.0)

Details: Bugzilla 5702 vs. 2189 and 4067

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Feb 5 10:39:09 2009 UTC (15 years, 1 month ago) by bisitz
Branches: MAIN
Diff to previous 1.54: preferred, colored
Changes since revision 1.54: +17 -16 lines
Deactivated new cache functionality for &mt
which was introduced in revision 1.54
due to missing/incorrect functionality:
  - Returned empty value instead of translation in some cases
  - Didn't respect user pref language changes
  - Didn't respect course language

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Feb 1 21:54:30 2009 UTC (15 years, 1 month ago) by lueken
Branches: MAIN
Diff to previous 1.53: preferred, colored
Changes since revision 1.53: +17 -2 lines
Localize Cache: Improvement in the mt function in lonlocal.pm for testing (much faster, final version in the next few days)

Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Mon Jan 5 16:55:04 2009 UTC (15 years, 2 months ago) by raeburn
Branches: version_2_8_X
CVS tags: version_2_8_1, version_2_8_0, version_2_7_99_1
Diff to previous 1.50.2.1: preferred, colored
Changes since revision 1.50.2.1: +21 -12 lines
- Backport 1.53.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Jan 2 23:07:52 2009 UTC (15 years, 2 months ago) by raeburn
Branches: MAIN
Diff to previous 1.52: preferred, colored
Changes since revision 1.52: +21 -12 lines
- When course activity log data are stored in $cnum_$cdom_activity tables, timestamps are stored using lonmysql::sqltime() which employs the server localtime.
- Student Activity displayed with trackstudent needs to have these timestamps converted to the time zone set for the course.
   - &server_timezone_handler() in lond retrieves server time zone from /etc/sysconfig/clock or /etc/timezone depending on distro.
   - &get_server_timezone() in lonnet.pm gets server time zone from course's homeserver.
   - &gettimezone() in lonlocal.pm can now take a timezone as an argument.
       - will validate it, and return it if valid, 'local' otherwise
   - &convert_timezone() in lontrackstudent.pm converts timestamps prior to display, and includes course time zone.

Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Fri Dec 12 04:29:35 2008 UTC (15 years, 3 months ago) by raeburn
Branches: version_2_8_X
CVS tags: version_2_7_99_0
Diff to previous 1.50: preferred, colored
Changes since revision 1.50: +52 -2 lines
- Backport 1.52.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Nov 28 14:36:55 2008 UTC (15 years, 4 months ago) by raeburn
Branches: MAIN
Diff to previous 1.51: preferred, colored
Changes since revision 1.51: +52 -2 lines
- Moving &preferred_languages() and &get_genlanguages() from loncommon.pm to lonlocal.pm, so they cn be available in cases where lonlocal.pm is used but loncommon.pm is not.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Nov 24 16:53:16 2008 UTC (15 years, 4 months ago) by jms
Branches: MAIN
Diff to previous 1.50: preferred, colored
Changes since revision 1.50: +29 -9 lines
POD changes

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 20 01:57:50 2008 UTC (15 years, 6 months ago) by raeburn
Branches: version_2_7_X
CVS tags: version_2_7_1
Diff to previous 1.48: preferred, colored next main 1.49: preferred, colored
Changes since revision 1.48: +13 -1 lines
Backport 1.50.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Sep 19 12:31:06 2008 UTC (15 years, 6 months ago) by raeburn
Branches: MAIN
Branch point for: version_2_8_X, GCI_1
Diff to previous 1.49: preferred, colored
Changes since revision 1.49: +13 -1 lines
- Retrieve default timezone for domain, in other contexts besides courses.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Sep 19 03:27:04 2008 UTC (15 years, 6 months ago) by raeburn
Branches: MAIN
Diff to previous 1.48: preferred, colored
Changes since revision 1.48: +34 -1 lines
Bugs: 5792 and 5798.
- Uses DateTime, DateTime::Locale, DateTime::Locale::Catalog.
- Disposition of events in calendar display now consistent with current time zone.
- Timezone in effect is displayed in Calendar header line.
- First day of week determined from date localization in effect.
- Extra empty row eliminated from end of calendar.

- Default date localization can be set for domain from Default auth/language/timezone section of Domain Configuration.
- Date localization can also be set for a specific course via "Set Course environement".
- When in course context, course-specific date localization applies (if set), otherwise default date localization of domain of course (if set).  In other contexts, date localization of domain of user (if set) applies.

- Currently date localization is only used to determine starting day of the week (for building calendar display).  Future uses might consider date order/format for display of dates.

- &timehash() and &maketime() routines in loncommon.pm modified to use time zones.
- &nextday() routine in lonannounce.pm modified to correctly identify next day.
- &getdatelocale() routine added to lonlocal.pm to retrieve date locale object.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Sep 13 02:37:29 2008 UTC (15 years, 6 months ago) by raeburn
Branches: MAIN
Branch point for: version_2_7_X
Diff to previous 1.47: preferred, colored
Changes since revision 1.47: +23 -2 lines
- Bug 5786. Language used for text wrapped around body of message in notification e-mail should correspond to language preference of recipient determined in order: user pref, domain default), unless message is sent in course content, and a language is defined for course (use course langage in this case).
lonmsg.pm - &user_lang() used to get a language hadler for recipient.
          - Translation of text uses &mt_user() instead of &mt().

lonlocal.pm - &mt_user() added (exported). Calls maketext, but takes language handler as firrst arg.

loncommon.pm - &get_genlanguages() added - functionality to turn en-ca into en-ca,en and also to remove duplicates from @preferred_languages - moved from &preferred_languages() to a separate subroutine so it is more widely available.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Jul 2 21:31:32 2008 UTC (15 years, 8 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_7_0, version_2_6_99_1, version_2_6_99_0
Diff to previous 1.46: preferred, colored
Changes since revision 1.46: +9 -1 lines
Bug 5638.
 - Sanity checking of $thistime passed to locallocaltime(), before calling DateTime->from_epoch() to prevent ISE.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Jul 2 21:10:41 2008 UTC (15 years, 8 months ago) by raeburn
Branches: MAIN
Diff to previous 1.45: preferred, colored
Changes since revision 1.45: +10 -3 lines
- Check the retrieved timezone is valid for the version of DateTime() on the server.
  If not default to local.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat May 31 23:37:49 2008 UTC (15 years, 10 months ago) by raeburn
Branches: MAIN
Diff to previous 1.44: preferred, colored
Changes since revision 1.44: +9 -2 lines
Bug 5722.
A default timezone can be set for a domain via the Domain Configuration menu.  This will be the timezone in effect in courses in the domain for which a course-specific timezone has not been set in the course environment.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri May 16 16:11:56 2008 UTC (15 years, 10 months ago) by raeburn
Branches: MAIN
Diff to previous 1.43: preferred, colored
Changes since revision 1.43: +10 -2 lines
- maketext() in Locale::Maketext 1.12 (used with perl 5.10) includes:
added line - Carp::confess('No handle/phrase') unless (defined($handle) && defined($phrase));
 -so don't call maketext() if there's no text to localize.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Jan 29 13:26:09 2008 UTC (16 years, 2 months ago) by www
Branches: MAIN
CVS tags: version_2_6_X, version_2_6_3, version_2_6_2
Diff to previous 1.42: preferred, colored
Changes since revision 1.42: +3 -2 lines
Bug #5609: In America, the week starts with Sunday. But elsewhere ...

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Oct 18 21:08:31 2007 UTC (16 years, 5 months ago) by albertel
Branches: MAIN
CVS tags: version_2_6_1, version_2_6_0, version_2_5_99_1, version_2_5_99_0
Diff to previous 1.41: preferred, colored
Changes since revision 1.41: +24 -12 lines
- add ability to set the timezone of a course

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Aug 28 14:26:25 2006 UTC (17 years, 7 months ago) by albertel
Branches: MAIN
CVS tags: version_2_5_X, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_X, version_2_3_99_0, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_X, version_2_2_99_1, version_2_2_99_0, version_2_2_2, version_2_2_1
Diff to previous 1.40: preferred, colored
Changes since revision 1.40: +16 -1 lines
- need to protect user title when being &mt() BUG#4985

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Jun 27 14:20:55 2006 UTC (17 years, 9 months ago) by albertel
Branches: MAIN
CVS tags: version_2_2_0, version_2_1_99_3, version_2_1_99_2, version_2_1_99_1, version_2_1_99_0
Diff to previous 1.39: preferred, colored
Changes since revision 1.39: +4 -1 lines
- showing the epoch as a real date only makes sense to programmers, let's try never instead

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Apr 20 04:30:23 2006 UTC (17 years, 11 months ago) by albertel
Branches: MAIN
Diff to previous 1.38: preferred, colored
Changes since revision 1.38: +6 -5 lines
- handling timezones correctly

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Apr 7 22:03:55 2006 UTC (17 years, 11 months ago) by albertel
Branches: MAIN
Diff to previous 1.37: preferred, colored
Changes since revision 1.37: +1 -20 lines
- moving handler into seperate file so lonlocal.pm can be used in CGI

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Nov 15 19:07:58 2005 UTC (18 years, 4 months ago) by albertel
Branches: MAIN
CVS tags: version_2_1_X, version_2_1_3, version_2_1_2, version_2_1_1, version_2_1_0, version_2_0_99_1
Diff to previous 1.36: preferred, colored
Changes since revision 1.36: +2 -2 lines
- remove dead code

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Nov 14 19:53:03 2005 UTC (18 years, 4 months ago) by albertel
Branches: MAIN
Diff to previous 1.35: preferred, colored
Changes since revision 1.35: +4 -5 lines
- deathe the Apache::File

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Nov 10 19:19:51 2005 UTC (18 years, 4 months ago) by www
Branches: MAIN
Diff to previous 1.34: preferred, colored
Changes since revision 1.34: +6 -3 lines
Display timezone for absolute dates and times.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Jun 22 05:04:51 2005 UTC (18 years, 9 months ago) by albertel
Branches: MAIN
CVS tags: version_2_0_X, version_2_0_2, version_2_0_1, version_2_0_0, version_1_99_3, version_1_99_2, version_1_99_1, version_1_99_0
Diff to previous 1.33: preferred, colored
Changes since revision 1.33: +2 -2 lines
- BUG#4067, set IE on windows to ISO if nothing more specfic wants something else.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Apr 18 22:17:45 2005 UTC (18 years, 11 months ago) by albertel
Branches: MAIN
CVS tags: version_1_99_1_tmcc
Diff to previous 1.32: preferred, colored
Changes since revision 1.32: +8 -3 lines
- tth, UTF-8 and IE don't get along

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Feb 17 08:51:08 2005 UTC (19 years, 1 month ago) by albertel
Branches: MAIN
CVS tags: version_1_99_0_tmcc
Diff to previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
- if that language doesn't specify the encoding pick utf-8 by default

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Feb 18 23:33:17 2004 UTC (20 years, 1 month ago) by albertel
Branches: MAIN
CVS tags: version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0, version_1_2_X, version_1_2_99_1, version_1_2_99_0, version_1_2_1, version_1_2_0, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, version_1_1_99_0
Diff to previous 1.30: preferred, colored
Changes since revision 1.30: +11 -5 lines
- &mt() would return an array into scalar context, needs to return a scalar in those cases
- printout.pl now has the headers, and set charset properly
- lonlocal works in a CGI context (but of course it will be slower since the language handle isn't persitent)
- loncommon::content_type works in a CGI context

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Dec 22 23:42:18 2003 UTC (20 years, 3 months ago) by www
Branches: MAIN
Diff to previous 1.29: preferred, colored
Changes since revision 1.29: +1 -2 lines
Might be a good idea to not submit the debugging code ...

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Dec 22 23:34:49 2003 UTC (20 years, 3 months ago) by www
Branches: MAIN
Diff to previous 1.28: preferred, colored
Changes since revision 1.28: +7 -9 lines
Bug #2471: our localization scheme only worked because get_language_handle
was usually called when $ENV{'HTTP_ACCEPT_LANGUAGE'} was not yet set. That
was not the case when an internal redirect had happened.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Dec 22 22:39:07 2003 UTC (20 years, 3 months ago) by www
Branches: MAIN
Diff to previous 1.27: preferred, colored
Changes since revision 1.27: +9 -2 lines
Saving my work on trying to get the languages right after re-init, etc.
Currently totally dysfunctional.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Dec 10 00:32:56 2003 UTC (20 years, 3 months ago) by www
Branches: MAIN
Diff to previous 1.26: preferred, colored
Changes since revision 1.26: +27 -1 lines
Internationalize publisher.html

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Nov 7 23:22:22 2003 UTC (20 years, 4 months ago) by www
Branches: MAIN
CVS tags: version_1_1_X, version_1_1_3, version_1_1_2, version_1_1_1, version_1_1_0, version_1_0_99_3, version_1_0_99_2, version_1_0_99_1, version_1_0_99
Diff to previous 1.25: preferred, colored
Changes since revision 1.25: +5 -49 lines
Minoru had a better idea on how to show translators where material appears
on the screen.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Oct 11 21:06:11 2003 UTC (20 years, 5 months ago) by www
Branches: MAIN
Diff to previous 1.24: preferred, colored
Changes since revision 1.24: +1 -16 lines
Move <mt>-tag into separate module to avoid module-dependency vicious cycle.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Oct 11 14:06:01 2003 UTC (20 years, 5 months ago) by www
Branches: MAIN
Diff to previous 1.23: preferred, colored
Changes since revision 1.23: +16 -1 lines
Saving my work: internationalize static html files.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Oct 10 16:56:16 2003 UTC (20 years, 5 months ago) by www
Branches: MAIN
Diff to previous 1.22: preferred, colored
Changes since revision 1.22: +4 -1 lines
Internationalize.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Oct 8 18:21:38 2003 UTC (20 years, 5 months ago) by bowersj2
Branches: MAIN
Diff to previous 1.21: preferred, colored
Changes since revision 1.21: +26 -2 lines
Commit &mtn since lonhelper is blowing up left and right.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Oct 8 18:08:16 2003 UTC (20 years, 5 months ago) by www
Branches: MAIN
Diff to previous 1.20: preferred, colored
Changes since revision 1.20: +2 -1 lines
Return 'en' as language if $lh is not defined.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Oct 8 17:43:37 2003 UTC (20 years, 5 months ago) by albertel
Branches: MAIN
Diff to previous 1.19: preferred, colored
Changes since revision 1.19: +5 -3 lines
- stop blowing up when $lh ain't there

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Oct 4 20:49:40 2003 UTC (20 years, 5 months ago) by www
Branches: MAIN
Diff to previous 1.18: preferred, colored
Changes since revision 1.18: +5 -4 lines
Internationalization, and in particular, lonlocal:locallocaltime and
Japanese dates.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Oct 4 18:13:36 2003 UTC (20 years, 5 months ago) by www
Branches: MAIN
Diff to previous 1.17: preferred, colored
Changes since revision 1.17: +39 -1 lines
Bug #2248: enable locale-dependent rendering of dates.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Oct 2 17:35:57 2003 UTC (20 years, 6 months ago) by bowersj2
Branches: MAIN
Diff to previous 1.16: preferred, colored
Changes since revision 1.16: +13 -1 lines
Add a normalization function to lonlocal.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Sep 29 13:24:49 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Looks like setlocale is causing all sorts of trouble, probably broken.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Sep 28 03:02:36 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.14: preferred, colored
Changes since revision 1.14: +14 -2 lines
It would be too nice if the locale names had anything to do with the
language codes, or the charset, in a predictable way ... but they do
not.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Sep 28 02:06:37 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.13: preferred, colored
Changes since revision 1.13: +4 -6 lines
The next adventure: formatting of numbers and times, definition of what
is a \w-character, etc.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Sep 23 03:02:37 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.12: preferred, colored
Changes since revision 1.12: +1 -5 lines
Remove useless code.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Sep 23 02:19:09 2003 UTC (20 years, 6 months ago) by albertel
Branches: MAIN
Diff to previous 1.11: preferred, colored
Changes since revision 1.11: +30 -16 lines
- I keep getting crashes without these checks on $lh
   I haven't yet tracked down who was causing these.
- $r->content_laguages([&current_language]);
     keeps throwing:
 [Mon Sep 22 14:16:50 2003] [error] [client 127.0.0.1] val is not of type APR::ArrayHeader at /home/httpd/lib/perl/Apache/lonlocal.pm line 128.
   I am working around it by ignoring it for now

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Sep 22 22:53:21 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.10: preferred, colored
Changes since revision 1.10: +3 -2 lines
Grrr ... it would be nice if $lh->language would spit out the currently
used language, but instead, it does look at the browser ... need to encode
language into translator file.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Sep 22 18:16:43 2003 UTC (20 years, 6 months ago) by bowersj2
Branches: MAIN
Diff to previous 1.9: preferred, colored
Changes since revision 1.9: +136 -1 lines
Add Gerd's I18N email to the POD documentation of lonlocal, for
preparation for entry into the developer's manual.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Sep 20 17:44:22 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.8: preferred, colored
Changes since revision 1.8: +2 -1 lines
Setting content language in headers.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Sep 20 17:04:02 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.7: preferred, colored
Changes since revision 1.7: +13 -1 lines
Saving my work.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Sep 20 14:16:09 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.6: preferred, colored
Changes since revision 1.6: +1 -2 lines
Store character encoding in lexicon.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Sep 20 13:21:45 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.5: preferred, colored
Changes since revision 1.5: +8 -1 lines
Get current language directly from lonlocal

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Sep 17 23:16:27 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.4: preferred, colored
Changes since revision 1.4: +8 -2 lines
Oops.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Sep 17 01:45:14 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.3: preferred, colored
Changes since revision 1.3: +38 -3 lines
Better German lexicon, work on translator interface.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Sep 16 22:40:25 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.2: preferred, colored
Changes since revision 1.2: +12 -2 lines
Continued work on Maketext
* can now set language preferences
* adv users can set "translator" language, and access little script to
enter translations for phrases covered by &mt

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Sep 16 19:23:47 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Diff to previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
Continued work on localization.

Translation files go into

loncom/localize/localize

as

de.pm
pt.pm

etc. Rest should be automagic.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Sep 16 15:23:43 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
Start of localization work with Locale::Maketext under the hood.

Usage (eventually):

use Apache::lonlocal;
...
$r->print( ... &mt('Stuff') ... );

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>