2017-10-09 1 views
0

여러 사진을 선택하는 데 takephoto_library를 사용하고 있습니다.Android 변경 문자열 언어

https://github.com/crazycodeboy/TakePhoto

이 제대로 작동하지만 당신은 아래의 스크린 샷에서 볼 수 있듯이, 자막은 중국어입니다.

내가보기 컨트롤이 "com.darsh.multipleimageselect.activities"이며,이 자막의 이드 영어로이 문자열을 변경할 수있는 방법이 아래

actionBar.setTitle(R.string.album_view); 

에 있음을 발견?

enter image description here

+0

"已 选"을 영어로 변경 하시겠습니까? –

+1

@JohnJoe 예 메이트 – MareCieco

+0

그래서 어떤 업데이트? –

답변

1

보십시오.

TakePhoto 라이브러리의 strings.xml (값) 및 strings.xml(values-en)을 찾으십시오.

그리고 문자열 이름을 영어로 변경하십시오.

strings.xml (값)에서

string name="add">确定</string> 
<string name="selected">已选</string> 
<string name="limit_exceeded">最多能选 %d 张</string> 

그리고 strings.xml (값-KO)에

string name="add">confirm</string> 
<string name="selected">selected</string> 
<string name="limit_exceeded">You can choose%d at most</string> 

을이를 추가하고이 strings.xml(values-en)strings.xml(values)

+0

지금 사용해 보겠습니다. – MareCieco

1

인가 변경할 수 있습니다 이 문자열을 영어로 바꿀 방법이 있습니까?

예, 영어

<string name="add">confirm</string> 
<string name="selected">selected</string> 
+0

@KeLiuyue takephoto_library가 내 프로젝트에 항아리로 추가되었습니다. 내가 gradle에서 그것을 제거하고 프로젝트로 추가해야합니까? – MareCieco

+1

잘 모르겠지만 라이브러리라면 그것을 바꿀 수 있다고 생각하지 않습니다. 왜 라이브러리가 아닌 수동으로 추가할까요? –

+0

최악의 경우, 그렇게하겠습니다. 많은 제안에 감사드립니다. – MareCieco

1

F에서 영어

<string name="add">确定</string> 
<string name="selected">已选</string> 

strings.xml

https://github.com/crazycodeboy/TakePhoto/blob/master/takephoto_library/src/main/res/values/strings.xml

변경이 두 중국어 단어를 모든 문자열을 변경할 수 있습니다 또는 국제화를 통해 안드로이드는 전화 번호를 선택함으로써 알맞은 지역에 대한 다른 디렉토리를 찾습니다. 예를 들어, 다음과 같이 나타납니다 : 번역 된 문자열 값에

./explorer/src/main/res/values-uk/strings.xml 
./explorer/src/main/res/values-tr/strings.xml 
./explorer/src/main/res/values-ru/strings.xml 
./explorer/src/main/res/values-pl/strings.xml 
./explorer/src/main/res/values-de/strings.xml 
./explorer/src/main/res/values-ko/strings.xml 
./explorer/src/main/res/values-sv/strings.xml 
... 

- ../입술/값/strings.xml의 결정에 따라 문자열. 당신은 유용한 Localizing with Resources을 찾을 수 있습니다

<string name="createnewfolder">Create new folder</string> 

<string name="createnewfolder">Нова папка</string> 

로 값 - 영국/strings.xml의에서 번역 : 내 경우, 고해상도/값/strings.xml의에서 는 항목이 있습니다.