| 18 * You should have received a copy of the GNU General Public License |
18 * You should have received a copy of the GNU General Public License |
| 19 * along with this program; if not, write to the Free Software |
19 * along with this program; if not, write to the Free Software |
| 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 21 */ |
21 */ |
| 22 #include <internal.h> |
22 #include <internal.h> |
| |
23 #include <locale.h> |
| 23 #include "finch.h" |
24 #include "finch.h" |
| 24 |
25 |
| 25 #include "account.h" |
26 #include "account.h" |
| 26 #include "conversation.h" |
27 #include "conversation.h" |
| 27 #include "core.h" |
28 #include "core.h" |
| 154 G_OPTION_ARG_NONE, &opt_version, |
155 G_OPTION_ARG_NONE, &opt_version, |
| 155 _("display the current version and exit"), NULL}, |
156 _("display the current version and exit"), NULL}, |
| 156 {NULL} |
157 {NULL} |
| 157 }; |
158 }; |
| 158 |
159 |
| 159 #ifdef ENABLE_NLS |
|
| 160 bindtextdomain(PACKAGE, PURPLE_LOCALEDIR); |
160 bindtextdomain(PACKAGE, PURPLE_LOCALEDIR); |
| 161 bind_textdomain_codeset(PACKAGE, "UTF-8"); |
161 bind_textdomain_codeset(PACKAGE, "UTF-8"); |
| 162 textdomain(PACKAGE); |
162 textdomain(PACKAGE); |
| 163 #endif |
|
| 164 |
163 |
| 165 setlocale(LC_ALL, ""); |
164 setlocale(LC_ALL, ""); |
| 166 |
165 |
| 167 context = g_option_context_new(NULL); |
166 context = g_option_context_new(NULL); |
| 168 g_option_context_set_summary(context, DISPLAY_VERSION); |
167 g_option_context_set_summary(context, DISPLAY_VERSION); |