Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
1525055a
Commit
1525055a
authored
Mar 20, 2019
by
Jeong Gilmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#33006 事業者毎のリソース多重化(Android)
parent
2cac1130
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 deletions
+11
-0
ABVJE_Res_Default_Android/res/values-ja/strings.xml
+0
-0
ABVJE_Res_Default_Android/res/values-ko/strings.xml
+0
-0
ABVJE_Res_Default_Android/res/values/strings.xml
+0
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/util/AndroidStringUtil.java
+11
-0
No files found.
ABVJE_Res_Default_Android/res/values-ja/strings.xml
View file @
1525055a
This diff is collapsed.
Click to expand it.
ABVJE_Res_Default_Android/res/values-ko/strings.xml
View file @
1525055a
This diff is collapsed.
Click to expand it.
ABVJE_Res_Default_Android/res/values/strings.xml
View file @
1525055a
This diff is collapsed.
Click to expand it.
ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/util/AndroidStringUtil.java
View file @
1525055a
...
...
@@ -15,4 +15,15 @@ public class AndroidStringUtil {
public
static
String
format
(
Context
context
,
int
id
,
String
...
args
)
{
return
String
.
format
(
context
.
getResources
().
getString
(
id
),
(
Object
[])
args
);
}
// #33006 start
// メッセージのパターン化する
public
static
int
pattern
(
Context
context
,
String
key
,
int
pattern
)
{
if
(
pattern
>
0
)
{
return
context
.
getResources
().
getIdentifier
(
String
.
format
(
key
+
"_%d"
,
pattern
),
"string"
,
context
.
getPackageName
());
}
else
{
return
context
.
getResources
().
getIdentifier
(
key
,
"string"
,
context
.
getPackageName
());
}
}
// #33006 end
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment