स्वधर्ममपि चावेक्ष्य न विकम्पितुमर्हसि।
धर्म्याद्धि युद्धाच्छ्रेयोऽन्यत्क्षत्रियस्य न विद्यते॥31॥
svadharmam api cāvekṣya na vikampitum arhasi dharmyād dhi yuddhāc chreyo 'nyat kṣatriyasya na vidyate
Considering your own dharma (duty) too, you ought not to waver, for there is nothing better for a kshatriya (warrior) than a righteous battle.
Shri Krishna now turns from the knowledge of the self to duty. Arjuna is a kshatriya, and standing up to protect justice is held to be his dharma. For life today the sense is that each person should carry out the duty of their role faithfully and not step back when it gets hard.
svadharmam: one's own dharma; api: also; cha: and; avekshya: considering; na: not; vikampitum: to waver; arhasi: you ought; dharmyat: righteous; hi: for; yuddhat: than a battle; shreyah: better; anyat: anything else; kshatriyasya: for a kshatriya; na vidyate: there is not

