From c825d75439cf1afa87e3a1da96d8229f01033acb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 14 Oct 2001 12:42:03 +0000 Subject: forgot to add intl.h (This used to be commit 6c61c50d4f9c94e38b5dbb43e013ce549c133500) --- source3/include/intl.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 source3/include/intl.h (limited to 'source3/include/intl.h') diff --git a/source3/include/intl.h b/source3/include/intl.h new file mode 100644 index 0000000000..6bde64f090 --- /dev/null +++ b/source3/include/intl.h @@ -0,0 +1,25 @@ +/* + Unix SMB/Netbios implementation. + Version 3.0 + internationalisation headers + Copyright (C) Andrew Tridgell 2001 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + + +/* ideally we would have a static mapping, but that precludes + dynamic loading. This is a reasonable compromise */ +#define _(x) lang_msg_rotate(x) -- cgit From cd68afe31256ad60748b34f7318a180cfc2127cc Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 30 Jan 2002 06:08:46 +0000 Subject: Removed version number from file header. Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa) --- source3/include/intl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/include/intl.h') diff --git a/source3/include/intl.h b/source3/include/intl.h index 6bde64f090..5b56d9aa2c 100644 --- a/source3/include/intl.h +++ b/source3/include/intl.h @@ -1,6 +1,5 @@ /* - Unix SMB/Netbios implementation. - Version 3.0 + Unix SMB/CIFS implementation. internationalisation headers Copyright (C) Andrew Tridgell 2001 -- cgit From 635dff752869d8284386d9c4b84a87840868ecd6 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 3 Oct 2003 01:42:53 +0000 Subject: Moving towards better i18n support in SWAT. This commit contains a bunch of updates to bug 413 from Monyo: 1) pick up proper strings to call msg strings for example to add strings in wizard menu in web/swat.c, web/statuspage.c and param/loadparm.c. 2) define N_() macro in include/intl.h to pick up some strings in param/loadparm.c 3) quote all name and value tag with '"' For example in swat.c:720 the "Edit Parameter Values" string is displayd only as "Edit" because value tag is not quoted like: value=Edit Parameter Values These tags should be quoted though it sometimes works well without quotation. 4) modify the msg strings not to contain HTML tags or other non-message strings. For example dprintf(_("test\n")); is modified to dprintf("%s\n", _("test")); (This used to be commit 351d16956d8125bc689ca84adcb71e0a57d6b7cc) --- source3/include/intl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/include/intl.h') diff --git a/source3/include/intl.h b/source3/include/intl.h index 5b56d9aa2c..01fa3bad97 100644 --- a/source3/include/intl.h +++ b/source3/include/intl.h @@ -22,3 +22,4 @@ /* ideally we would have a static mapping, but that precludes dynamic loading. This is a reasonable compromise */ #define _(x) lang_msg_rotate(x) +#define N_(x) (x) -- cgit From 2ae9a0b4d83f10af02a75a16673cdef9c4f3873b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 1 Jul 2007 19:40:04 +0000 Subject: r23671: Remove unused code -- 16416 bytes of bss space... (This used to be commit 25f3bfdb1f60ab17af05608481068299da94cec9) --- source3/include/intl.h | 1 - 1 file changed, 1 deletion(-) (limited to 'source3/include/intl.h') diff --git a/source3/include/intl.h b/source3/include/intl.h index 01fa3bad97..58f21e359b 100644 --- a/source3/include/intl.h +++ b/source3/include/intl.h @@ -21,5 +21,4 @@ /* ideally we would have a static mapping, but that precludes dynamic loading. This is a reasonable compromise */ -#define _(x) lang_msg_rotate(x) #define N_(x) (x) -- cgit From d824b98f80ba186030cbb70b3a1e5daf80469ecd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 9 Jul 2007 19:25:36 +0000 Subject: r23779: Change from v2 or later to v3 or later. Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3) --- source3/include/intl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/include/intl.h') diff --git a/source3/include/intl.h b/source3/include/intl.h index 58f21e359b..8e83e42fc7 100644 --- a/source3/include/intl.h +++ b/source3/include/intl.h @@ -5,7 +5,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, -- cgit From 5e54558c6dea67b56bbfaba5698f3a434d3dffb6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 10 Jul 2007 00:52:41 +0000 Subject: r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07) --- source3/include/intl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/include/intl.h') diff --git a/source3/include/intl.h b/source3/include/intl.h index 8e83e42fc7..cb0dc346cc 100644 --- a/source3/include/intl.h +++ b/source3/include/intl.h @@ -14,8 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with this program. If not, see . */ -- cgit