nwg-piotr / nwg-hello

GTK3-based greeter for greetd written in python
MIT License
31 stars 4 forks source link

label changes in template file not shown #19

Open fybx opened 2 weeks ago

fybx commented 2 weeks ago

Hi!

I have made some changes to the default template, here's the diff:

42c42
<                             <property name="label" translatable="yes">いらっしゃいませ</property>
---
>                             <property name="label" translatable="yes">Welcome!</property>
67c67
<                             <property name="label" translatable="yes">Monday, 13 January</property>
---
>                             <property name="label" translatable="yes">Monday, 13. January</property>

I updated the field "template-name" in /etc/nwg-hello/nwg-hello.json to "/etc/nwg-hello/navi.glade" and also just "navi.glade", but none of them worked.

Sorry in advance if I missed something - I'm very tired 😄

nwg-piotr commented 2 weeks ago

Just a name, without path, should work, provided that you placed your template in /etc/nwg-hello/.

mike-lloyd03 commented 1 day ago

I'm having this problem too. On archlinux, I copied /usr/lib/python3.12/site-packages/nwg_hello/template.glade to /etc/nwg-hello/mike.glade. I changed:

<property name="label" translatable="yes">Welcome!</property>

to

<property name="label" translatable="no">Log in</property>

And updated nwg-hello.json to this:

{
    ...
    "template-name": "mike.glade",
    ...

But the page still shows "Welcome!"