[Vala] public string array
- From: "Dr. Michael J. Chudobiak" <mjc avtechpulse com>
- To: vala-list gnome org
- Subject: [Vala] public string array
- Date: Thu, 12 Feb 2009 08:58:34 -0500
Hi all,
I want a class to have a public array of i18n-ized strings available.
What is wrong with my code below?
using GLib;
public class Settings : GLib.Object
{
public enum Parity {NONE, ODD, EVEN, MARK, SPACE, ENUMLENGTH }
public const string[] parityString = { GLib.N_("None"),
GLib.N_("Odd"),
GLib.N_("Even"),
GLib.N_("Mark"),
GLib.N_("Space") };
... gives these warnings ...
./src/Settings.h:91: warning: implicit declaration of function ‘N_’
./src/Settings.h:91: error: initializer element is not constant
./src/Settings.h:91: error: (near initialization for
‘SETTINGS_parityString[0]’)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]