! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Add strings to translation
Status:
RESOLVED: FIXED
Product:
Xfce4-wavelan-plugin
Component:
General

Comments

Description Sergey 2014-06-05 21:39:44 CEST
Created attachment 5514 
patch

Add strings to translation.
Comment 1 Landry Breuil editbugs 2014-06-12 22:52:21 CEST
Thanks for the patch, but i dont understand why you need #define N_(str) (str) in wi_common.c. Why not using the standard _() call ?

Also, for the /* translator */ hints comment, you dont need to add the braces around the if {} else {}, which renders the diff more complicated than it should be.

Other than that, good work! Expecting a fixed diff from you!
Comment 2 Landry Breuil editbugs 2014-11-23 21:44:24 CET
Mass-reassign all bugs from florian@ to goodies-dev@, thanks for the maintenance work! (and sorry for the bugmail spam..)
Comment 3 Sergey 2014-12-04 17:30:18 CET
Created attachment 5793 
patch v2
Comment 4 Sergey 2014-12-04 17:32:50 CET
> Why you need #define N_(str) (str)

I think it is appropriate and it is common practice:
http://www.gnu.org/software/gettext/manual/gettext.html#index-N_005f_002c-a-convenience-macro


> Why not using the standard _() call ?

wi_strerror() is const char *, and _() (gettext()) is char *

So it will lead to 4 warnings: "return makes pointer from integer without a cast [enabled by default]"

Patch is updated to v2 without braces for if else.
Comment 5 Landry Breuil editbugs 2014-12-04 17:58:47 CET
Thanks, applied in 4aedc49e

Bug #10939

Reported by:
Sergey
Reported on: 2014-06-05
Last modified on: 2014-12-04

People

Assignee:
Xfce-Goodies Maintainers
CC List:
1 user

Version

Version:
unspecified

Attachments

patch (2.95 KB, patch)
2014-06-05 21:39 CEST , Sergey
no flags
patch v2 (2.91 KB, patch)
2014-12-04 17:30 CET , Sergey
no flags

Additional information