diff --git a/app/src/main/kotlin/jackall/moncalc/adapter/MainFragmentPagerAdapter.kt b/app/src/main/kotlin/jackall/moncalc/adapter/MainFragmentPagerAdapter.kt index eb65389..2df497f 100644 --- a/app/src/main/kotlin/jackall/moncalc/adapter/MainFragmentPagerAdapter.kt +++ b/app/src/main/kotlin/jackall/moncalc/adapter/MainFragmentPagerAdapter.kt @@ -4,6 +4,7 @@ import android.support.v4.app.Fragment import android.support.v4.app.FragmentManager import android.support.v4.app.FragmentPagerAdapter +import jackall.moncalc.R import jackall.moncalc.fragment.AnalyzeFragment import jackall.moncalc.fragment.HistoryFragment @@ -12,7 +13,7 @@ */ class MainFragmentPagerAdapter(fragmentManager: FragmentManager, val context: Context) : FragmentPagerAdapter(fragmentManager) { val pageCount = 2 - val titles = arrayOf("履歴", "解析") + val titles = arrayOf(context.resources.getString(R.string.history), context.resources.getString(R.string.analyze)) override fun getItem(position: Int): Fragment? { when (position) { 0 -> {