build: define first week day in the build script
Calendar is not handling locale correctly, e.g. user’ set language to English (en-us) and format to Norwegian (nb-no), but Calendar assumes English format rather than Norwegian. Calendar code was ready to use the correct format, just like Shell and GtkCalendar. The issue was in the build script which was setting the correct locale variable responsible to make that code work. This patch fixes the build script. https://bugzilla.gnome.org/show_bug.cgi?id=762428
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
48df0903e5
commit
5e05f99876
@@ -26,6 +26,17 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
|
||||
AS_IF([test "x$USE_NLS" != "xno"],
|
||||
[AC_DEFINE([ENABLE_NLS], [1], [Native language support is enabled])])
|
||||
|
||||
# _NL_TIME_FIRST_WEEKDAY is an enum and not a define
|
||||
AC_MSG_CHECKING([for _NL_TIME_FIRST_WEEKDAY])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]],
|
||||
[[nl_langinfo(_NL_TIME_FIRST_WEEKDAY);]])],
|
||||
[langinfo_ok=yes], [langinfo_ok=no])
|
||||
AC_MSG_RESULT($langinfo_ok)
|
||||
if test "$langinfo_ok" = "yes"; then
|
||||
AC_DEFINE([HAVE__NL_TIME_FIRST_WEEKDAY], [1],
|
||||
[Define if _NL_TIME_FIRST_WEEKDAY is available])
|
||||
fi
|
||||
|
||||
## don't rerun to this point if we abort
|
||||
AC_CACHE_SAVE
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gcal-utils.h"
|
||||
#include "gcal-event-widget.h"
|
||||
#include "gcal-view.h"
|
||||
|
||||
Reference in New Issue
Block a user