Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locale translation file updates. #1062

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1108,15 +1108,12 @@ AC_ARG_ENABLE(perllib,
AC_SUBST(FVWM_PERLLIB)

# ******* gettext
ALL_LINGUAS="ar da de fr sv_SE zh_CN ru es"
FVWM_DOMAIN="fvwm"
FVWMSCRIPT_DOMAIN="FvwmScript"
ALL_DOMAINS="$FVWM_DOMAIN $FVWMTASKBAR_DOMAIN $FVWMSCRIPT_DOMAIN"
ALL_LINGUAS="ar da de es fr ru sv_SE zh_CN zh_TW"
FVWM_DOMAIN="fvwm3"
ALL_DOMAINS="$FVWM_DOMAIN"

AC_SUBST(ALL_LINGUAS)
AC_SUBST(FVWM_DOMAIN)
AC_SUBST(FVWMTASKBAR_DOMAIN)
AC_SUBST(FVWMSCRIPT_DOMAIN)
AC_SUBST(ALL_DOMAINS)

LOCALEDIR="$FVWM_DATADIR/locale"
Expand Down
4 changes: 2 additions & 2 deletions fvwm/fvwm3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1701,8 +1701,8 @@ int main(int argc, char **argv)
}
g_argv[g_argc] = NULL;

FlocaleInit(LC_CTYPE, "", "", "fvwm");
FGettextInit("fvwm", LOCALEDIR, "fvwm");
FlocaleInit(LC_CTYPE, "", "", "fvwm3");
FGettextInit("fvwm3", LOCALEDIR, "fvwm3");

setVersionInfo();
/* Put the default module directory into the environment so it can be
Expand Down
2 changes: 1 addition & 1 deletion fvwm/menus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,7 @@ static Bool size_menu_vertically(MenuSizingParameters *msp)
/* don't propagate sidepic, sidecolor, popup and
* popdown actions */
/* And add the entry pointing to the new menu */
gt_name = gettext("More&...");
gt_name = _("More&...");
name = fxstrdup(gt_name);
AddToMenu(
msp->menu, name, tempname,
Expand Down
6 changes: 3 additions & 3 deletions modules/FvwmScript/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ yyparse ()
#endif
#endif
{

int yystate;
int yyn;
int yyresult;
Expand Down Expand Up @@ -2482,7 +2482,7 @@ yyparse ()
case 5:
#line 402 "script.y"
{
FGettextInit("FvwmScript", LOCALEDIR, "FvwmScript");
FGettextInit("fvwm3", LOCALEDIR, "fvwm3");
FGettextSetLocalePath((yyvsp[(3) - (3)].str));
}
break;
Expand All @@ -2491,7 +2491,7 @@ yyparse ()
#line 407 "script.y"
{
fprintf(stderr,"UseGettext!\n");
FGettextInit("FvwmScript", LOCALEDIR, "FvwmScript");
FGettextInit("fvwm3", LOCALEDIR, "fvwm3");
}
break;

Expand Down
4 changes: 2 additions & 2 deletions modules/FvwmScript/script.y
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,13 @@ initvar: { InitVarGlob(); }
head:
| head USEGETTEXT GSTR
{
FGettextInit("FvwmScript", LOCALEDIR, "FvwmScript");
FGettextInit("fvwm3", LOCALEDIR, "fvwm3");
FGettextSetLocalePath($3);
}
| head USEGETTEXT
{
fprintf(stderr,"UseGettext!\n");
FGettextInit("FvwmScript", LOCALEDIR, "FvwmScript");
FGettextInit("fvwm3", LOCALEDIR, "fvwm3");
}
/* empty: we use default values */
| head WINDOWTITLE GSTR
Expand Down
Binary file removed po/FvwmScript.ar.gmo
Binary file not shown.
260 changes: 0 additions & 260 deletions po/FvwmScript.ar.po

This file was deleted.

Binary file removed po/FvwmScript.da.gmo
Binary file not shown.
Loading
Loading