Commit 49466c81 authored by Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto
Browse files

Initial support for localization

Only 3 strings, and translated to Brazilian Portuguese as well,
because I want :)
parent 770447c4
......@@ -26,7 +26,7 @@
static const char *
desktop_capture_get_name (void *type_data)
{
return "Desktop Screencast (Wayland / X11)";
return obs_module_text ("DesktopCapture");
}
static void *
......
DesktopCapture="Desktop Capture (X11 / Wayland)"
ShowCursor="Show cursor"
WindowCapture="Window Capture (X11 / Wayland)"
DesktopCapture="Captura de tela (X11 / Wayland)"
ShowCursor="Mostrar cursor"
WindowCapture="Captura de janela (X11 / Wayland)"
......@@ -7,6 +7,9 @@ sources = files(
'window-capture.c',
)
datadir = join_paths(get_option('datadir'), 'obs', 'obs-plugins', 'obs-xdg-portal')
install_subdir('locale', install_dir: datadir)
shared_library('obs-xdg-portal',
sources,
name_prefix : '',
......
......@@ -26,6 +26,7 @@
#include "window-capture.h"
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("obs-xdg-portal", "en-US")
bool obs_module_load (void)
{
......
......@@ -974,7 +974,7 @@ obs_pipewire_get_properties (obs_pipewire_data *xdg)
obs_properties_t *properties;
properties = obs_properties_create ();
obs_properties_add_bool (properties, "ShowCursor", "Show cursor");
obs_properties_add_bool (properties, "ShowCursor", obs_module_text ("ShowCursor"));
return properties;
}
......
......@@ -26,7 +26,7 @@
static const char *
window_capture_get_name (void *type_data)
{
return "Window Capture (Wayland / X11)";
return obs_module_text ("WindowCapture");
}
static void *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment