Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need all po/pot files for translation in hindi in gentoo.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
manojk83
n00b
n00b


Joined: 27 Oct 2016
Posts: 6
Location: India

PostPosted: Wed Nov 02, 2016 1:14 pm    Post subject: Need all po/pot files for translation in hindi in gentoo. Reply with quote

Hi All,

I installed Gentoo on my VM using Plasma 5 and it's working fine. Now I need to translate all English strings to Hindi(Indian) language. For this, I need .po files which contains all translate string for each locales.

I am unable to find it on my gentoo. I looked into i18n folder but it doesn't contained any translation file. I am able to find .mo file which is complied version of .po files. If that will be find in packages, how to obtain, changed and applied?

Do we have any location(SVN/GIT) where all .po files stored?

Please help me.

Regards
Manoj
_________________
Thanks And Regards
Manoj
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Nov 02, 2016 2:42 pm    Post subject: Reply with quote

Run
Code:
equery belongs filename.mo
on a .mo file for which you need to locate the source code. This will show you which package provided the source.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
manojk83
n00b
n00b


Joined: 27 Oct 2016
Posts: 6
Location: India

PostPosted: Thu Nov 03, 2016 6:23 am    Post subject: Reply with quote

Thanks for the reply. I will try that and let you know.
_________________
Thanks And Regards
Manoj
Back to top
View user's profile Send private message
manojk83
n00b
n00b


Joined: 27 Oct 2016
Posts: 6
Location: India

PostPosted: Thu Nov 03, 2016 11:50 am    Post subject: Reply with quote

John R. Graham wrote:
Run
Code:
equery belongs filename.mo
on a .mo file for which you need to locate the source code. This will show you which package provided the source.

- John


I tried with following cmd : equery belongs /usr/share/locale/hi/LC_MESSAGES/poedit.mo


I got the following response:
app-i18n/poedit-1.5.5 (/usr/share/locale/hi/LC_MESSAGES/poedit.mo)

when I goes to that folder , it contains following file but no translation files are there:

Code:
manojk@gentoo-box /var/db/pkg/app-i18n/poedit-1.5.5 $ ls -l
total 160
-rw-r--r-- 1 root root    11 Nov  2 11:26 BUILD_TIME
-rw-r--r-- 1 root root     9 Nov  2 11:26 CATEGORY
-rw-r--r-- 1 root root    20 Nov  2 11:26 CBUILD
-rw-r--r-- 1 root root    45 Nov  2 11:26 CFLAGS
-rw-r--r-- 1 root root    20 Nov  2 11:26 CHOST
-rw-r--r-- 1 root root 17766 Nov  2 11:26 CONTENTS
-rw-r--r-- 1 root root     3 Nov  2 11:26 COUNTER
-rw-r--r-- 1 root root    45 Nov  2 11:26 CXXFLAGS
-rw-r--r-- 1 root root    42 Nov  2 11:26 DEFINED_PHASES
-rw-r--r-- 1 root root    93 Nov  2 11:26 DEPEND
-rw-r--r-- 1 root root    51 Nov  2 11:26 DESCRIPTION
-rw-r--r-- 1 root root     2 Nov  2 11:26 EAPI
-rw-r--r-- 1 root root   267 Nov  2 11:26 FEATURES
-rw-r--r-- 1 root root    31 Nov  2 11:26 HOMEPAGE
-rw-r--r-- 1 root root    64 Nov  2 11:26 INHERITED
-rw-r--r-- 1 root root     6 Nov  2 11:26 IUSE
-rw-r--r-- 1 root root   852 Nov  2 11:26 IUSE_EFFECTIVE
-rw-r--r-- 1 root root    25 Nov  2 11:26 KEYWORDS
-rw-r--r-- 1 root root    24 Nov  2 11:26 LDFLAGS
-rw-r--r-- 1 root root    27 Nov  2 11:26 LICENSE
-rw-r--r-- 1 root root   268 Nov  2 11:26 NEEDED                                                                                                             
-rw-r--r-- 1 root root   284 Nov  2 11:26 NEEDED.ELF.2                                                                                                       
-rw-r--r-- 1 root root    13 Nov  2 11:26 PF                                                                                                                 
-rw-r--r-- 1 root root    75 Nov  2 11:26 RDEPEND                                                                                                           
-rw-r--r-- 1 root root   260 Nov  2 11:26 REQUIRES                                                                                                           
-rw-r--r-- 1 root root     8 Nov  2 11:26 SIZE                                                                                                               
-rw-r--r-- 1 root root     2 Nov  2 11:26 SLOT                                                                                                               
-rw-r--r-- 1 root root    61 Nov  2 11:26 USE                                                                                                               
-rw-r--r-- 1 root root 21466 Nov  2 11:26 environment.bz2                                                                                                   
-rw-r--r-- 1 root root   920 Nov  2 11:26 poedit-1.5.5.ebuild                                                                                               
-rw-r--r-- 1 root root     7 Nov  2 11:26 repository
[/quote]


How to fetch/find the .po files from app-i18n/poedit-1.5.5 ?
_________________
Thanks And Regards
Manoj
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Nov 03, 2016 1:16 pm    Post subject: Reply with quote

The response is telling you that the package app-i18n/poedit version 1.5.5 owns (i.e., was used to create) that file. During Portage's build of a package, the source code is extracted to a temporary directory (by default /var/tmp/portage/<versioned atom>/work). Once the build is complete, this temporary directory is (by default) erased. You can extract the source code with Portage, for example with
Code:
ebuild `equery which app-i18n/poedit` prepare

Learning about these commands, and learning how you can patch packages to include your additions, is part of learning about Gentoo. The Handbook Working with Portage section is a really good place to start studying, followed by the Gentoo Development Guide. Also see the man pages for the above two commands (equery and ebuild).

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum