Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add localization to libopenrave, libopenrave-core, and openrave pytho…
…ng binding.
- Loading branch information
Showing
50 changed files
with
2,614 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.mo | ||
*.pot | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
set(LANGUAGES | ||
en_US | ||
ja_JP | ||
) | ||
set(DOMAINS openrave) | ||
|
||
find_program(GETTEXT_MSGFMT_EXECUTABLE msgfmt) | ||
if(NOT GETTEXT_MSGFMT_EXECUTABLE) | ||
message(FATAL_ERROR "msgfmt not found") | ||
endif(NOT GETTEXT_MSGFMT_EXECUTABLE) | ||
|
||
foreach(LANG ${LANGUAGES}) | ||
foreach(DOMAIN ${DOMAINS}) | ||
|
||
add_custom_command( | ||
OUTPUT ${CMAKE_SOURCE_DIR}/locale/${LANG}/LC_MESSAGES | ||
COMMAND ${CMAKE_COMMAND} -E make_directory | ||
${CMAKE_SOURCE_DIR}/locale/${LANG}/LC_MESSAGES | ||
) | ||
|
||
add_custom_command( | ||
OUTPUT ${CMAKE_SOURCE_DIR}/locale/${LANG}/LC_MESSAGES/${DOMAIN}.mo | ||
COMMAND | ||
${GETTEXT_MSGFMT_EXECUTABLE} --verbose --check-format --check-domain --output-file=${CMAKE_SOURCE_DIR}/locale/${LANG}/LC_MESSAGES/${DOMAIN}.mo ${DOMAIN}.po | ||
DEPENDS | ||
${CMAKE_SOURCE_DIR}/locale/${LANG}/LC_MESSAGES | ||
${CMAKE_SOURCE_DIR}/locale/${LANG}/LC_MESSAGES/${DOMAIN}.po | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/locale/${LANG}/LC_MESSAGES | ||
) | ||
|
||
install(FILES ${CMAKE_SOURCE_DIR}/locale/${LANG}/LC_MESSAGES/${DOMAIN}.mo | ||
DESTINATION ${OPENRAVE_LOCALE_INSTALL_ABSOLUTE_DIR}/${LANG}/LC_MESSAGES) | ||
|
||
set(locale-deps ${locale-deps} ${CMAKE_SOURCE_DIR}/locale/${LANG}/LC_MESSAGES/${DOMAIN}.mo) | ||
|
||
endforeach(DOMAIN ${DOMAINS}) | ||
endforeach(LANG ${LANGUAGES}) | ||
|
||
add_custom_target(locale ALL DEPENDS ${locale-deps}) |
Oops, something went wrong.
ffa18d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, since this commit, shadow_hand model is not loaded properly in Ubuntu 14.04. There is no error message, so I'm not sure where the problem is. I'm still looking how to fix it, but someone could try also to check for that.
In Ubuntu Mate 14.04 it works fine, so it seems to be something related to libraries locations or versions.