1
0
Fork 0

cogl: Remove remaining i18n infrastructure

Not sure it makes sense to translate only parts of the debugging output
and on top of that, those files were not part of POTFILES, so they were not
translated anyways..

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3895>
This commit is contained in:
Bilal Elmoussaoui 2024-07-22 11:08:26 +02:00
parent 6da869d575
commit f4f6422699
7 changed files with 7 additions and 52 deletions

View file

@ -32,7 +32,6 @@
#include <stdlib.h>
#include "cogl/cogl-i18n-private.h"
#include "cogl/cogl-private.h"
#include "cogl/cogl-debug.h"
@ -174,26 +173,23 @@ _cogl_parse_debug_string (const char *value,
}
else if (g_ascii_strcasecmp (value, "help") == 0)
{
g_printerr ("\n\n%28s\n", _("Supported debug values:"));
g_printerr ("\n\n%28s\n", "Supported debug values:");
#define OPT(MASK_NAME, GROUP, NAME, NAME_FORMATTED, DESCRIPTION) \
g_printerr ("%28s %s\n", NAME ":", DESCRIPTION);
#include "cogl/cogl-debug-options.h"
g_printerr ("\n%28s\n", _("Special debug values:"));
g_printerr ("\n%28s\n", "Special debug values:");
OPT (IGNORED, "ignored", "all", "ignored", \
N_("Enables all non-behavioural debug options"));
"Enables all non-behavioural debug options");
OPT (IGNORED, "ignored", "verbose", "ignored", \
N_("Enables all non-behavioural debug options"));
"Enables all non-behavioural debug options");
#undef OPT
g_printerr ("\n"
"%28s\n"
" COGL_DISABLE_GL_EXTENSIONS: %s\n"
" COGL_OVERRIDE_GL_VERSION: %s\n",
_("Additional environment variables:"),
_("Comma-separated list of GL extensions to pretend are "
"disabled"),
_("Override the GL version that Cogl will assume the driver "
"supports"));
"Additional environment variables:",
"Comma-separated list of GL extensions to pretend are disabled",
"Override the GL version that Cogl will assume the driver supports");
exit (1);
}
else

View file

@ -1,36 +0,0 @@
/*
* Cogl
*
* A Low Level GPU Graphics and Utilities API
*
* Copyright (C) 2013 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
*
*/
#pragma once
#include <string.h>
#define _(X) X
#define N_(X) X

View file

@ -4,7 +4,6 @@
#include "cogl/cogl-profile.h"
#include "cogl/cogl-debug.h"
#include "cogl/cogl-i18n-private.h"
#include <stdlib.h>

View file

@ -34,7 +34,6 @@
#include <math.h>
#include <stdlib.h>
#include "cogl/cogl-i18n-private.h"
#include "cogl/cogl-cpu-caps.h"
#include "cogl/cogl-debug.h"
#include "cogl/cogl-graphene.h"

View file

@ -196,7 +196,6 @@ cogl_sources = [
'cogl-graphene.c',
'cogl-half-float.c',
'cogl-half-float.h',
'cogl-i18n-private.h',
'cogl-index-buffer-private.h',
'cogl-index-buffer.c',
'cogl-indices-private.h',

View file

@ -32,7 +32,6 @@
#include "config.h"
#include "cogl/cogl-i18n-private.h"
#include "cogl/cogl-util.h"
#include "cogl/cogl-feature-private.h"
#include "cogl/cogl-context-private.h"

View file

@ -32,7 +32,6 @@
#include "config.h"
#include "cogl/cogl-i18n-private.h"
#include "cogl/cogl-util.h"
#include "cogl/cogl-feature-private.h"
#include "cogl/cogl-context-private.h"