aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChyla Zbigniew <chyla@src.gnome.org>2001-09-01 05:44:24 +0800
committerChyla Zbigniew <chyla@src.gnome.org>2001-09-01 05:44:24 +0800
commit578b942b6a056c6d6e5d42e823b24dd8e5d400e1 (patch)
tree42b32dd11d50f77484004213ac188425bba51da8
parent639173be602e469419a73760cdb9c696fdbf693c (diff)
downloadgsoc2013-evolution-578b942b6a056c6d6e5d42e823b24dd8e5d400e1.tar.gz
gsoc2013-evolution-578b942b6a056c6d6e5d42e823b24dd8e5d400e1.tar.zst
gsoc2013-evolution-578b942b6a056c6d6e5d42e823b24dd8e5d400e1.zip
Don't convert folder name to UTF-8 manually... (setup_stock_folders): ...
* e-local-storage.c (setup_folder_as_stock): Don't convert folder name to UTF-8 manually... (setup_stock_folders): ... just use U_() here. (impl_get_display_name): Marked string for translation (with U_). * e-storage-set-view.c (storage_sort_callback): s/strcasecmp/g_utf8_collate/ (folder_sort_callback): ditto * e-summary-storage.c (impl_get_display_name): Marked string for translation (with U_). svn path=/trunk/; revision=12546
-rw-r--r--shell/ChangeLog14
-rw-r--r--shell/e-local-storage.c25
-rw-r--r--shell/e-storage-set-view.c9
-rw-r--r--shell/e-summary-storage.c4
4 files changed, 33 insertions, 19 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 61b4d54dcc..5cede21be0 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,17 @@
+2001-08-31 Zbigniew Chyla <cyba@gnome.pl>
+
+ * e-local-storage.c
+ (setup_folder_as_stock): Don't convert folder name to UTF-8 manually...
+ (setup_stock_folders): ... just use U_() here.
+ (impl_get_display_name): Marked string for translation (with U_).
+
+ * e-storage-set-view.c
+ (storage_sort_callback): s/strcasecmp/g_utf8_collate/
+ (folder_sort_callback): ditto
+
+ * e-summary-storage.c (impl_get_display_name):
+ Marked string for translation (with U_).
+
2001-08-29 Iain Holmes <iain@ximian.com>
* e-local-storage.c (notify_listener): Function to create CORBAany
diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c
index 0006be090d..c3c73954c8 100644
--- a/shell/e-local-storage.c
+++ b/shell/e-local-storage.c
@@ -49,6 +49,7 @@
#include <gal/util/e-util.h>
#include <gal/widgets/e-unicode.h>
#include "e-util/e-path.h"
+#include "e-util/e-unicode-i18n.h"
#include "e-local-folder.h"
#include "evolution-storage.h"
@@ -154,16 +155,12 @@ setup_folder_as_stock (ELocalStorage *local_storage,
const char *name)
{
EFolder *folder;
- char *utf8_name;
folder = e_storage_get_folder (E_STORAGE (local_storage), path);
if (folder == NULL)
return FALSE;
- utf8_name = e_utf8_from_locale_string (name);
- e_folder_set_name (folder, utf8_name);
- g_free (utf8_name);
-
+ e_folder_set_name (folder, name);
e_folder_set_is_stock (folder, TRUE);
return TRUE;
@@ -172,14 +169,14 @@ setup_folder_as_stock (ELocalStorage *local_storage,
static void
setup_stock_folders (ELocalStorage *local_storage)
{
- setup_folder_as_stock (local_storage, "/Calendar", _("Calendar"));
- setup_folder_as_stock (local_storage, "/Contacts", _("Contacts"));
- setup_folder_as_stock (local_storage, "/Drafts", _("Drafts"));
- setup_folder_as_stock (local_storage, "/Inbox", _("Inbox"));
- setup_folder_as_stock (local_storage, "/Outbox", _("Outbox"));
- setup_folder_as_stock (local_storage, "/Sent", _("Sent"));
- setup_folder_as_stock (local_storage, "/Tasks", _("Tasks"));
- setup_folder_as_stock (local_storage, "/Trash", _("Trash"));
+ setup_folder_as_stock (local_storage, "/Calendar", U_("Calendar"));
+ setup_folder_as_stock (local_storage, "/Contacts", U_("Contacts"));
+ setup_folder_as_stock (local_storage, "/Drafts", U_("Drafts"));
+ setup_folder_as_stock (local_storage, "/Inbox", U_("Inbox"));
+ setup_folder_as_stock (local_storage, "/Outbox", U_("Outbox"));
+ setup_folder_as_stock (local_storage, "/Sent", U_("Sent"));
+ setup_folder_as_stock (local_storage, "/Tasks", U_("Tasks"));
+ setup_folder_as_stock (local_storage, "/Trash", U_("Trash"));
}
static gboolean
@@ -623,7 +620,7 @@ impl_get_name (EStorage *storage)
static const char *
impl_get_display_name (EStorage *storage)
{
- return _("Local Folders");
+ return U_("Local Folders");
}
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index 928ebfaf9c..3ebeb14f06 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -36,6 +36,7 @@
#include <gal/e-table/e-tree-memory-callbacks.h>
#include <gal/e-table/e-cell-tree.h>
#include <gal/e-table/e-cell-text.h>
+#include <gal/unicode/gunicode.h>
#include <libgnome/gnome-util.h>
@@ -162,15 +163,15 @@ storage_sort_callback (ETreeMemory *etmm,
if (path2_local)
return 1;
- return strcasecmp (e_tree_model_value_at (E_TREE_MODEL (etmm), node1, 0),
- e_tree_model_value_at (E_TREE_MODEL (etmm), node2, 0));
+ return g_utf8_collate (e_tree_model_value_at (E_TREE_MODEL (etmm), node1, 0),
+ e_tree_model_value_at (E_TREE_MODEL (etmm), node2, 0));
}
static int
folder_sort_callback (ETreeMemory *etmm, ETreePath path1, ETreePath path2, gpointer closure)
{
- return g_strcasecmp (e_tree_model_value_at (E_TREE_MODEL (etmm), path1, 0),
- e_tree_model_value_at (E_TREE_MODEL (etmm), path2, 0));
+ return g_utf8_collate (e_tree_model_value_at (E_TREE_MODEL (etmm), path1, 0),
+ e_tree_model_value_at (E_TREE_MODEL (etmm), path2, 0));
}
diff --git a/shell/e-summary-storage.c b/shell/e-summary-storage.c
index de58b470f5..6d127f8f91 100644
--- a/shell/e-summary-storage.c
+++ b/shell/e-summary-storage.c
@@ -29,6 +29,8 @@
#include "e-folder.h"
+#include "e-util/e-unicode-i18n.h"
+
#include <gal/util/e-util.h>
#include <gtk/gtktypeutils.h>
@@ -75,7 +77,7 @@ impl_get_name (EStorage *storage)
static const char *
impl_get_display_name (EStorage *storage)
{
- return _("Summary");
+ return U_("Summary");
}
>* - Update to 1.3.1miwi2007-04-162-6/+5 * - Fix fetchingpav2007-04-141-1/+1 * Change my email address to trasz@FreeBSD.org.trasz2007-04-131-1/+1 * - Update to 070328miwi2007-04-122-4/+4 * - Update to 1.2.438acm2007-04-116-17/+134 * - Fix plistmiwi2007-04-112-74/+74 * Update to 2.18.1:ahze2007-04-103-4/+16 * * Update to 0.2.7lwhsu2007-04-102-8/+16 * Automatically substitude PREFIX in pkg-message, so it's clearer for user wher...lwhsu2007-04-102-1/+5 * - Fix after latest update: install languages files ourself. Bumprafan2007-04-102-381/+399 * - Update to version 2.0.6.alepulver2007-04-102-19/+16 * - Forgot to add SDL compilation flags after Makefile patch rewrite.alepulver2007-04-101-1/+1 * - Use TCL/TK 8.4miwi2007-04-101-4/+4 * - Complete repocopy of games/bos to games/boswars.alepulver2007-04-109-691/+119 * Update to 0.8.22.thierry2007-04-095-97/+153 * Remove kgeography, latest versions of kgeography have been part of kdeeduarved2007-04-095-414/+0 * - Update MASTER_SITESlwhsu2007-04-091-1/+1 * - Update to 1.6clsung2007-04-092-4/+4 * - Update to 0.8.6rafan2007-04-093-11/+17 * - Update to 0.5.2rafan2007-04-092-4/+4 * - Update to 0.1.5rafan2007-04-093-14/+14 * - Update to version 2.0.5.alepulver2007-04-084-8/+8 * - Bump PORTREVISION.alepulver2007-04-082-15/+2 * - Bump PORTREVISION.alepulver2007-04-086-49/+98 * Use ncursesw from base where available (HEAD and now RELENG_6 too)nox2007-04-081-3/+11 * - Update ggz ports to 0.0.14rafan2007-04-0719-132/+110 * - Update to 0.80rafan2007-04-073-16/+15 * - updated maintainer e-mail addressmm2007-04-051-2/+2 * - Respect CXX and CXXFLAGSstefan2007-04-055-31/+18 * update to 0.4.3oliver2007-04-053-10/+12 * - Add another master site to solve reliability problemrafan2007-04-051-1/+5 * . Drop maintainership of these ports. Its glaringly obvious that I don'tglewis2007-04-041-1/+1 * - Update to 1.6.11nivit2007-04-033-7/+5 * Fix path of locale directory so localization is possible.stefan2007-04-032-0/+12 * - Convert existing ports to a new bsd.tcl.mk orderpav2007-04-032-4/+7 * Add new files for 1.2.3 to pkg-plist.philip2007-04-032-0/+20 * Add port games/hinversi:sat2007-04-025-0/+55 * - Update to 1.5clsung2007-04-022-4/+4 * Add deinstall script to ensure proper cleanup when port is removed.johans2007-04-021-0/+41 * - Add missing pkg-plist substitutions.alepulver2007-04-011-482/+482 * - Add missing pkg-plist entries for the RED option.alepulver2007-04-011-0/+48 * Update to 1.2.3.philip2007-04-016-8/+10 * Update to 0.5.1erwin2007-03-312-4/+4 * The FreeCol team aims to create an Open Source version ofale2007-03-316-0/+692 * Free and complete third party scenarios for the Aleph One engine:alepulver2007-03-317-0/+3815 * - Bump PORTREVISION.alepulver2007-03-316-23/+898 * - Update to version 20061228.alepulver2007-03-315-94/+79 * - Deprecate in favor of games/alephone-scenarios (not committed yet, thatalepulver2007-03-311-1/+3 * - Deprecate in favor of games/alephone-data (I have an update to make italepulver2007-03-311-1/+3 * - Bump PORTREVISION because of the changes in the last commit.alepulver2007-03-312-0/+2 * - Remove part of patch-security which was causing a "Bad challenge" error whenalepulver2007-03-311-13/+0 * - Fix Makefile patch.alepulver2007-03-312-27/+15 * Add file with user information forgotten in yesterday's commitjohans2007-03-301-0/+2 * - Update to 4.3.8johans2007-03-3013-662/+347 * - Update to 0.5miwi2007-03-304-57/+38 * Drop maintainershipehaupt2007-03-291-1/+1 * - Fix after objformat removalpav2007-03-291-8/+2 * Outer Space is an on-line strategy game which takes place in themiwi2007-03-297-0/+167 * - Fix buildmiwi2007-03-282-1/+15 * Reset freebsd-dr@durchnull.de:linimon2007-03-281-1/+1 * - Fix building after removal of objformat(1).alepulver2007-03-281-26/+4 * - Add gfx to USE_SDL. Now it compiles without problemsacm2007-03-281-1/+1 * MaNGOS (the Massive Network Game Object Server) is an Open Source referencemiwi2007-03-276-0/+537 * - Update games/alienarena-data, games/alienarena and games/linux-alienarena toalepulver2007-03-278-417/+195 * - Update to 4.37miwi2007-03-271-5/+3 * Use USE_TK_BUILD and REINPLACE_CMD.tg2007-03-261-5/+2 * - Update to 20070323acm2007-03-266-33/+18 * Add port games/klavaro:sat2007-03-265-0/+188 * BROKEN: Unfetchablekris2007-03-251-0/+2 * - COPYTREE_* are now part of bsd.port.mkpav2007-03-242-14/+0 * Remove zero-length filesnox2007-03-2418-0/+0 * Convert freebsd-games to use termios.h instead of sgtty.hnox2007-03-2470-444/+1098 * Update to 2.18.0.1.marcus2007-03-243-4/+23 * add burrtools 0.2.1ijliao2007-03-235-0/+49 * - Mark as ONLY_FOR_ARCHS=i386, the reason is that it doesn't run properlyalepulver2007-03-231-0/+2 * - Use newer version of the source code (1.52), taken from games/quake2lnx.alepulver2007-03-233-19/+36 * - Fix after objformat removalmiwi2007-03-231-1/+1 * - Update to 1.2.6miwi2007-03-233-43/+26 * 2007-03-16 databases/zodb: outdated software, databases/zodb3 should be usedmiwi2007-03-237-676/+0 * - Fix building with GCC 4.x.alepulver2007-03-235-0/+94 * force dependency on gcc 3.4edwin2007-03-221-0/+1 * - Fix building with GCC 4.x.alepulver2007-03-224-0/+75 * - Fix building with GCC 4.x.alepulver2007-03-223-1/+44 * Add build depends on tcl and tk.tg2007-03-221-1/+4 * - Make fetchable.alepulver2007-03-222-6/+2 * - Use TCL/TK 8.4miwi2007-03-213-21/+20 * Fix compilation when using gcc 4.1 due to attempting to cast a pointer to anwill2007-03-212-2/+6 * - update to 1.2.8dinoex2007-03-202-4/+4 * - OPTIONifygabor2007-03-202-47/+36 * - Do not extract things during `pre-patch' phasedanfe2007-03-192-4/+10 * Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOMEmarcus2007-03-197-50/+319 * - Chase x11-toolkits/fox16 updaterafan2007-03-191-2/+2 * Fix runtime issue:arved2007-03-182-0/+22 * - Update to 0.1.9rafan2007-03-183-7/+7 * Add funnyboat 1.4, a side scrolling shooter game starring a steamboat onrafan2007-03-186-0/+125 * - Remove no longer needed start scriptmiwi2007-03-183-437/+2 * BROKEN: Configure failskris2007-03-181-0/+2 * BROKEN: Unfetchablekris2007-03-182-0/+4 * - Fix fetchinggabor2007-03-171-5/+1 * - Update to 0.2miwi2007-03-163-17/+16 * Update to scare-1.3.6.roam2007-03-162-4/+4 * - Use TCL/TK 8.4miwi2007-03-161-4/+4 * Avoid <sgtty.h>nox2007-03-161-1/+1 * Use Tcl/Tk8.4. Use PLIST_FILES.tg2007-03-164-22/+21 * Update to version 2.2.3.danfe2007-03-164-16/+12 * - Update to 1.2.10pav2007-03-155-47/+13 * Reset aberg@doomnet.de due to maintainer-timeouts and no response to email.linimon2007-03-141-1/+1 * Update to KDE 3.5.6 / KOffice 1.6.2lofi2007-03-149-19/+21 * - 1.10sat2007-03-132-8/+7 * Return to pool at maintainer's request. The next generation of code (v2)linimon2007-03-121-1/+1 * Update to 1.2.2philip2007-03-126-130/+260 * Update to 5.10.2hq2007-03-112-4/+4 * A class between bsd.python.mk and this ports Makefile occured:edwin2007-03-112-0/+25 * Update to version 15.0.danfe2007-03-085-52/+26 * - Update to 1.4miwi2007-03-073-161/+88 * Free Tennis is a tennis simulation. The most notable features of Free Tennisjylefort2007-03-075-0/+82 * - Update to 0.6.2miwi2007-03-072-4/+4 * - Update to 0.5.1miwi2007-03-074-24/+19 * - Update to 0.2.6miwi2007-03-072-4/+4 * - Update to 1.3.9miwi2007-03-073-1473/+1492 * - Update to 7.3miwi2007-03-072-6/+7 * Jin is an open source, cross platform, graphical client (interface)nivit2007-03-066-0/+173 * - The ManaWorld version update to 0.0.22.2 and music addon patch.clsung2007-03-064-102/+34 * - Update to version 2.0.5.alepulver2007-03-053-20/+19 * - Fix wrapper scripts ignoring additional arguments.alepulver2007-03-051-1/+1 * - Use "sizeof()" to determine pointer size, instead of using "4" (fixes aalepulver2007-03-051-2/+11 * Maintainer is busy right now, and suggests that someone else might belinimon2007-03-052-2/+2 * Reset klaus.goger@reflex.at; address bounces.linimon2007-03-051-1/+1 * Reset esu@yk.rim.or.jp due to maintainer-timeouts and no response to email.linimon2007-03-052-2/+2 * update to 0.4.2oliver2007-03-054-114/+905 * Update to version 3.4.2.danfe2007-03-032-4/+4 * - Update to 0.2.5rafan2007-03-023-12/+16 * Reflect current state of affairs.danfe2007-03-021-2/+2 * Belatedly update to version 0.6.1.danfe2007-03-025-268/+109 * Update to new shiny version 0.5.0.danfe2007-03-015-34/+38 * Battle for Mandicor is a free (as in freedom) real time strategy game usingalepulver2007-02-276-0/+696 * - Update to version 2.0.1.alepulver2007-02-278-52/+1278 * - Update to version 2.2.2.alepulver2007-02-276-162/+137 * - Update to version 2.2.2.alepulver2007-02-274-30/+17 * - Update to 1.0.2miwi2007-02-273-22/+27 * Reset phil@brassy.net due to maintainer-timeouts and no response to email.linimon2007-02-271-1/+1 * Avanor is a roguelike game with a easy ADOM-like user interface, itmiwi2007-02-275-0/+61 * Warp Rogue is a gothic science fantasy roguelike game. It featuresmiwi2007-02-276-0/+156 * ActionCube is a total conversion of Wouter van Oortmerssen's FPS called Cube.alepulver2007-02-2715-0/+1999 * - Update to version 0.10.1.alepulver2007-02-273-272/+65 * - Update to 0.7.9miwi2007-02-268-1226/+1470 * - Update MASTER_SITES for FuhQuake addons.alepulver2007-02-261-2/+1 * The Marriage of XreaL and Icculus.org Q3 w/ Improvements!alepulver2007-02-2613-0/+519 * In 2000, Raven Software released the source code to their class based shooteralepulver2007-02-265-0/+865 * In 2000, Raven Software released the source code to their class based shooteralepulver2007-02-2514-0/+474 * Chase the shared library version of speex, bump the PORTREVISION.mezz2007-02-242-4/+4 * - Update to version 1.1.0az2007-02-243-11/+160 * - Update to 0.5rafan2007-02-223-82/+73 * Fix fetcharved2007-02-221-1/+1 * - Fix plistsat2007-02-211-0/+1 * - Update to 0.1b r2rafan2007-02-205-46/+81 * - Deprecate: is unfetchable and homepage disappearedgabor2007-02-201-0/+3 * LaTrine is a curses-based LAnguage TRaINEr. It takes a dictionary andnox2007-02-197-0/+94 * - Update to version 0.5.2.alepulver2007-02-192-5/+5 * Add port games/gnono:sat2007-02-195-0/+60 * - Update to 1.7sat2007-02-182-4/+4 * - Update to version 0.56.alepulver2007-02-172-9/+4 * Upgrade to 0.7.4.tg2007-02-163-104/+225 * - Update to version 7187.alepulver2007-02-163-14/+4 * Add bumprace 1.5.3, simple arcade racing game.rafan2007-02-165-0/+197 * - Update to version 0.6.alepulver2007-02-156-16/+130 * - Update to version 3.2.4.1.alepulver2007-02-1513-515/+175 * - Avoid using (a few remaining) i386 assembly sources on other architectures.alepulver2007-02-151-0/+19 * - Remove QTDIR from CONFIGURE_ENV, it's in there already thanks to frameworkpav2007-02-136-6/+7 * Update to 8.2.2-2ahze2007-02-123-6/+149 * Update to 0.1.1erwin2007-02-112-5/+5 * Schedule these broken ports for removal on 2007-04-10 if they are stillkris2007-02-113-0/+6 * - Update to 1.6sat2007-02-112-5/+6 * Reset unreachable maintainer address:kris2007-02-111-1/+1 * - Fix pkg-plistmiwi2007-02-111-2/+1 * - Update to version 2.0.4.alepulver2007-02-104-8/+8 * - Update MASTER_SITES.alepulver2007-02-102-2/+2 * Add port games/tbclock:sat2007-02-094-0/+38 * - Fix overzealous X11BASE patching which was breaking compilationpav2007-02-092-4/+0 * - Update to 1.35miwi2007-02-093-4/+5 * Brutal Chess features full 3D graphics, an advanced particle engine,miwi2007-02-097-0/+336 * Cultivation is quite different from most other games. It is a socialmiwi2007-02-097-0/+114 * - Remove MASTER_SITE_LOCAL since distfile does not exists.mnag2007-02-081-3/+1 * - Add new mirrors to MASTER_SITESacm2007-02-081-4/+11 * - Fix MASTER_SITES.stas2007-02-081-1/+1 * - Remove stale dependencymiwi2007-02-071-4/+0 * - Update to 1.0.5rafan2007-02-075-28/+7 * Fix RUN_DEPENDSskv2007-02-071-3/+1 * - Chase net/enet update.stas2007-02-063-1/+43 * This is a rebuild of the (westwood) red alert game engine (basedalepulver2007-02-067-0/+134 * - Update to version 2007.603.alepulver2007-02-057-61/+156 * - Update to SVN revision 142.alepulver2007-02-0518-322/+156 * - Fix building on amd64 and probably ia64.alepulver2007-02-051-0/+10 * - Update to 0.2.1acm2007-02-053-29/+26 * - Remove '-Werror' compiler flag to build fine with GCC 4.x.alepulver2007-02-051-1/+2 * Fix the build after the removal of objformat.marcus2007-02-041-0/+2 * - Update to 0.5.6acm2007-02-033-4/+5 * - Update to 0.0.22.1miwi2007-02-034-8/+23 * - Update to 1.395miwi2007-02-033-6/+5 * - Update to 0.4.0.1miwi2007-02-037-73/+51 * - Fix plist if NOPORTDOCS is definedmarkus2007-02-031-2/+3 * - Remove support for xfree86-3pav2007-02-039-39/+2 * - Fix build after libmytinfo is gonerafan2007-02-022-4/+4 * - Update to 133acm2007-02-026-77/+125 * - I forgot to remove BROKEN line in my previous commit.acm2007-02-021-3/+1 * - Update to 0.17acm2007-02-026-81/+181 * Use libtool port instead of included version to avoid objformat a.out botchkris2007-02-016-0/+6 * - add category gnustepdinoex2007-02-0114-14/+14 * Update to 1.0.3jylefort2007-01-313-6/+35 * - Update to 1.1.5sat2007-01-302-7/+5 * - Remove support for a.out format and PORTOBJFORMAT variable from individualpav2007-01-303-18/+11 * BROKEN: Does not compilekris2007-01-301-0/+2 * Use libtool port instead of included version to avoid a.out objformat botchkris2007-01-301-0/+1 * Update to 1.4.1nox2007-01-302-4/+4 * Update to 2.16.3.mezz2007-01-294-18/+11 * You control a hand holding some very heavy ball on a rope (physicsmiwi2007-01-296-0/+127 * Use libtool port instead of included one to avoid objformat a.out botchkris2007-01-281-0/+1 * - Update to 0.8.2miwi2007-01-284-48/+68 * bump PORTREVISION for ogre3d updateoliver2007-01-272-4/+4 * Repair regexp madness that resulted in things like "Bab%%PORTOBJFORMAT%%ish"kris2007-01-271-13/+13 * - Swap master sites, make checksum chokes on parallelrealities.co.uk returnin...pav2007-01-261-2/+2 * - Fix compatibility problemes with freetype2-2.2.1_1miwi2007-01-262-2/+17