GithubHelp home page GithubHelp logo

NLS: "Workspace" about labwc HOT 12 CLOSED

01micko avatar 01micko commented on June 16, 2024
NLS: "Workspace"

from labwc.

Comments (12)

Consolatis avatar Consolatis commented on June 16, 2024 1

And I think by default Mouse wheel on the desktop changes workspaces.

from labwc.

01micko avatar 01micko commented on June 16, 2024 1

Don't know what (if anything) I did but it's working now. I changed comments on wrong file (lt.po, not it.po). LANG=it shown in screencap.

workspace-it

from labwc.

01micko avatar 01micko commented on June 16, 2024 1

Pretty cool eh? That's all part of the testing 😺

from labwc.

Consolatis avatar Consolatis commented on June 16, 2024

I assume you refer to the default for the workspace prefix?

rc.workspace_config.prefix = xstrdup("Workspace");

I guess we could indeed localize that one.

from labwc.

01micko avatar 01micko commented on June 16, 2024

Might not be worth the effort as when I start with no config there is no label "Workspace [nr]". I'm running with it locale and the the menu works fine but osd is rather bland. Here's a snippet of the pot file after doing the changes.

#: src/menu/menu.c:744
msgid "Move right"
msgstr ""

#: src/menu/menu.c:749
msgid "Always on Visible Workspace"
msgstr ""

#: src/menu/menu.c:752 src/config/rcxml.c:1384
msgid "Workspace"
msgstr ""

#: src/menu/menu.c:755
msgid "Close"
msgstr ""

Because the string translation is the same the existing mo files should 'just work`.

from labwc.

Consolatis avatar Consolatis commented on June 16, 2024

If you add <desktops number="4" /> to your config it should show it.

from labwc.

01micko avatar 01micko commented on June 16, 2024

If you add <desktops number="4" /> to your config it should show it.

Just looking at that!

from labwc.

01micko avatar 01micko commented on June 16, 2024

Hrm..

Here's what I have in rcxml.c

rc.workspace_config.prefix = xstrdup( _("Workspace") );

It all builds fine, runs with it (or any supported locale should do) but fails to translate.

The comments in the pot and po files shouldn't make a difference, but I'll test that out anyway by adjusting po/it.po

from labwc.

Consolatis avatar Consolatis commented on June 16, 2024

Very nice :)

Fancy opening a PR?

from labwc.

01micko avatar 01micko commented on June 16, 2024

Working on it.

from labwc.

01micko avatar 01micko commented on June 16, 2024

Tested a few locales and all working sweet. PR very shortly after some house keeping.

ar

from labwc.

Consolatis avatar Consolatis commented on June 16, 2024

Uh, is that even RTL? I didn't know that that actually works, awesome!

from labwc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.